Closed Sv3n closed 8 months ago
I could be mistaken, but I don't think this has anything to do with VHDL_LS. Language configuration is a built-in feature of VS Code. This repository is for a third-party VHDL language server. If you want a tool that can do VHDL formatting, I suggest that you look at this https://vhdl-style-guide.readthedocs.io/en/3.21.0/overview.html
For a moment, I thought I had my tabs crossed, but it is actually here, so I think I've posted this in the right place (note the rust_hdl_vscode vs rust_hdl):
https://github.com/VHDL-LS/rust_hdl_vscode/blob/master/language-configuration.json
The indentationRules
in that file decide if VSCode indents lines for a particular language, e.g. when you press return to type the next line, or while moving them / pasting then,
I stand corrected, apologies!
This looks like a nice addition. Could you open a Pull Request with your change?
Here's the pull request: https://github.com/VHDL-LS/rust_hdl_vscode/pull/83
Closed with #83
VHDL is not case sensitive, but the indentation rules are. I made a local change to
language-configuration.json
that fixes this.Old:
Updated:
I learned about the flags option here in case you are wondering: https://github.com/microsoft/vscode/issues/74493. Perhaps this is something that would be useful for others as well?
Side note: the only detail that does not really work to my liking is
WHEN
statements, but that is more of a personal preference, I was trying to get them to format like this, but I don't see how that can be done with the available indentationRules handholds in vscode.