Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: UDL tabstop settings #4458

Open
LunaLycan287 opened this issue Apr 26, 2018 · 1 comment
Open

Feature Request: UDL tabstop settings #4458

LunaLycan287 opened this issue Apr 26, 2018 · 1 comment
Labels
udl Everything related to User Defined Language

Comments

@LunaLycan287
Copy link

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.)

@AlexBlandin
Copy link

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.

@MetaChuh MetaChuh added the udl Everything related to User Defined Language label May 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
udl Everything related to User Defined Language
Projects
None yet
Development

No branches or pull requests

3 participants