wraith13 / bracket-lens-vscode

Show bracket head on closing bracket for VS Code.
https://marketplace.visualstudio.com/items?itemName=wraith13.bracket-lens
Boost Software License 1.0
50 stars 7 forks source link

hi,i am using system verilog language, and i have set this below in my setting json, but there is nothing happened,could you please give me some guide to make this work #17

Open ezio1996 opened 2 years ago

ezio1996 commented 2 years ago

"[systemverilog]":{ "bracketLens.languageConfiguration": { "word": [ { "opening": "begin", "closing": "end", "headerMode": "smart", "inters": [] } ], "symbol": [ { "opening": "{", "closing": "}", "headerMode": "smart", "inters": [] }, ] } }

this is my SV code:

class test_my extends uvm_test;

int value;

function new(string name = "test_my ");
    if (value==0) begin 
        `uvm_info("WHERE_PRINT","get one transaction, copy and print it:", UVM_LOW)    
    end 
    else if (value==1) begin
        `uvm_info("WHERE_PRINT","get one transaction, copy and print it:", UVM_LOW)
    end 
endfunction: new

endclass: test_my

wraith13 commented 2 years ago

bracketLens.minBracketScopeLines's default value is 5. Decrease this setting value. And run Bracket Lens: Update Brackets command or set bracketlens.mode setting item to auto.

ezio1996 commented 2 years ago

bracketLens.minBracketScopeLines's default value is 5. Decrease this setting value. And run Bracket Lens: Update Brackets command or set bracketlens.mode setting item to auto.

thanks so much ,it works!

ezio1996 commented 2 years ago

by the way,how can i configure this situation: class tb_adder8;

function new(string name = "tb_adder8");
    $display("kkk");
endfunction

endclass

i have config
"word": [ { "opening": "begin", "closing": "end", "headerMode": "smart", "inters": [] }, { "opening": "function", "closing": "endfunction", "headerMode": "smart", "inters": [] }, { "opening": "class", "closing": "endclass", "headerMode": "smart", "inters": [] }, ] but it can not work,so could you please give me some guide?