Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding a setting for comment alignment #2239

Open
12113004 opened this issue Aug 21, 2024 · 0 comments
Open

adding a setting for comment alignment #2239

12113004 opened this issue Aug 21, 2024 · 0 comments
Labels
enhancement New feature or request style-linter Verilog style-linter issues

Comments

@12113004
Copy link

Summary

I hope the plugin can add a setting for comment alignment, like [AlignLineComments].

Proposal

I found that the configuration in the Verible plugin does not include a setting for comments. I hope a comment alignment setting can be added, as this would improve the correspondence between my Verilog code and the functional comments. Just like this feature showed in other plugin in VScode.

// AlignLineComments=false  #(default)
always @(posedge clk) // always
    if (load == 1)  // if
        bitc <= 0; //
    else if (load == 0 && clk_baud == 1) // else if
        bitc <= bitc + 1; //

// AlignLineComments=true
always @(posedge clk)                    // always
    if (load == 1)                       // if
        bitc <= 0;                       //
    else if (load == 0 && clk_baud == 1) // else if
        bitc <= bitc + 1;                //
@12113004 12113004 added enhancement New feature or request style-linter Verilog style-linter issues labels Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request style-linter Verilog style-linter issues
Projects
None yet
Development

No branches or pull requests

1 participant