You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tabstop settings are Language specific, since some languages (yaml) don't allow tabs.
User Defined Languages do not have a setting for tabstops.
We have a big project with different filetypes and several languages. For most of them our coding conventions state indents are tabs and 4 wide, but we also have 2 userDefniedLanguages of which one is spaces and 4 wide and the other spaces and 2 wide.
Expected Behavior
User defnined languages should also be able to set a different tab behaviour and safe it to their xml.
Best is to copy known behaiviour from lang.xml and allow us to set something like:
<UserLang name="protobuf" ext="proto" udlVersion="2.1" tabSettings="132">
First step would be allowing it to be set in xml and accepted.
For setting it via GUI I don't know if it would be better to add it to Settings>Preferences>Language or to the UDL editor GUI under Languages>Define your language.
(Personally I think it should be in the UDL Editor. To keep the settings for your UDL in one place.)
The text was updated successfully, but these errors were encountered:
Nobody even notice this? It's been a limitation with UDL for a while, especially if you work with multiple languages that have different rules - i.e. two UDLs, one likes tabs the other spaces, would like to specify tabSettings in either the <UserLang> or the <UserLang><Settings><Global> tags, especially if it simply acts the same as normal languages. If we could see the promotion in support for UDLs such that they are just as capable as normal languages, that would be awesome, especially if it means you can have the UDL be a base and can then non-destructively edit your personal style alongside all the other languages. That last one is just a thought, but the ability to specify tabs in UDL is REALLY IMPORTANT. Otherwise I'll just have to keep using a special macro for Nim whenever I want to save that first converts the tabs to spaces and then saves - which is really annoying.
Description of the Issue
Tabstop settings are Language specific, since some languages (yaml) don't allow tabs.
User Defined Languages do not have a setting for tabstops.
We have a big project with different filetypes and several languages. For most of them our coding conventions state indents are tabs and 4 wide, but we also have 2 userDefniedLanguages of which one is spaces and 4 wide and the other spaces and 2 wide.
Expected Behavior
User defnined languages should also be able to set a different tab behaviour and safe it to their xml.
Best is to copy known behaiviour from lang.xml and allow us to set something like:
<UserLang name="protobuf" ext="proto" udlVersion="2.1" tabSettings="132">
First step would be allowing it to be set in xml and accepted.
For setting it via GUI I don't know if it would be better to add it to Settings>Preferences>Language or to the UDL editor GUI under Languages>Define your language.
(Personally I think it should be in the UDL Editor. To keep the settings for your UDL in one place.)
The text was updated successfully, but these errors were encountered: