Case transformation configuration #400
Replies: 2 comments
-
|
Here are some thoughts of mine after using this great lsp for a while. I feel like a way to to this is by using those groups (or something similar):
However I have some more proposals for the case handling: Instead of completing names (variables, functions, etc) with the case as defined in the config, there should be a option to use the case as defined in the declaration (with a config like "keep"), while not required for vhdl this feels more natural to me. In addition to lower, upper and pascal case ther should also be camel case. Specifying every keyword is probably not needed (at lest for me). |
Beta Was this translation helpful? Give feedback.
-
|
Thanks a lot for the great input!
You can already have the "keep" option if you just omit the I have also thought about implementing |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
As of 4f20cbd it is possible to enable case transformations for completions. So instead of completing
STD_LOGIC_VECTOR, the user can now choose between lower case (std_logic_vector), upper case (STD_LOGIC_VECTOR) or pascal case (Std_Logic_Vector). Yet, for productive use, not all completions should be transformed in the same manner. For example:constant FOO_BAR : std_logic_vectorI would like to discuss the most suitable configuration option. As an example:
There is also the question as to how granular these options should be. I.e., should it be possible to modify every single keyword? How are multiple categories (i.e.,
signalsandvariables) aggregated?Beta Was this translation helpful? Give feedback.
All reactions