Skip to content
This repository has been archived by the owner on Jun 30, 2020. It is now read-only.

Autoindent support #22

Open
skazarynau opened this issue Mar 27, 2017 · 5 comments
Open

Autoindent support #22

skazarynau opened this issue Mar 27, 2017 · 5 comments

Comments

@skazarynau
Copy link

Hi,
Is autoindent supported. If so, how to turn it on?
Thanks,
Siarhei

@mshr-h
Copy link
Owner

mshr-h commented Mar 28, 2017

Not supported yet.
You can make a Pull Request if you want.
Thanks.

@Yushiao
Copy link
Contributor

Yushiao commented Mar 29, 2017

I think vscode support autoindent by add brackets pair in language-configuration.json

But it will cause #6, maybe we can wait vscode issue to be fixed

@skazarynau
Copy link
Author

@Yushiao Where is language-configuration.json for this extention? I see many such files in C:\Program Files (x86)\Microsoft VS Code\resources\app\extensions but I cannot find the file for SystemVerilog

@Yushiao
Copy link
Contributor

Yushiao commented Mar 29, 2017

@skazarynau If you want to modify language-configuration.json. It is at C:\Users\name\.vscode\extensions\mshr-h.SystemVerilog-0.0.12

@bjaminn
Copy link
Contributor

bjaminn commented Apr 3, 2017

It seems the following code might need to be used to supply indenting. I am not sure if this is possible with a language like systemverilog.

    var rules = <vscode.LanguageConfiguration>{};

    rules.indentationRules = {
        increaseIndentPattern: /\bbegin\b/,
        decreaseIndentPattern: /\bend\b/
    };

    vscode.languages.setLanguageConfiguration('systemverilog', rules );

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants