microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.18k stars 28.84k forks source link

User settings for language configurations #102574

Open irvnriir opened 4 years ago

irvnriir commented 4 years ago

Please add functionality to: set all Autoclosing, Surrounding, Indentation settings and enable Intendation Folding (if possible, on top of language specific one); so they could not be overwritten by Language configs.

When multiple languages are used, the kaleidoscope switching of these settings are disturbing and/or loading the memory for no use. And editing the config files for each language is inconsistent and long.

roblourens commented 4 years ago

Can you explain more about what you are looking for? Are you talking about settings like editor.autoClosingBrackets? You can set those to affect all languages, or override them per language.

irvnriir commented 4 years ago

@roblourens from language-configuration.json : autoClosingPairs, surroundingPairs, folding. editor.autoClosingBrackets somewhy can be overwritten by Language (even if not set to "languageDefined"), for example in Armitxes.sqf.

roblourens commented 4 years ago

Can you give me an example of the exact issue you are having?

irvnriir commented 4 years ago

what?

settings.json : ,"editor.autoClosingBrackets": "beforeWhitespace" %extensions%\armitxes.sqf-2.0.3\package.json : ,"editor.autoClosingBrackets": "always" The 2nd setting is used. (isssue)

autoClosingPairs, surroundingPairs, folding that are present in language-configuration.json -s in default Language extensions, can't be set language-independent in settings.json . (isssue)

aeschli commented 4 years ago

The request to allow users to configure autoclosing pairs is https://github.com/microsoft/vscode/issues/38352 Folding markers is: https://github.com/microsoft/vscode/issues/36002

irvnriir commented 3 years ago

The folding ask is about using Indentation together with "Open" and "Close" Tags . Unlike the linked 1 .

alexdima commented 2 years ago

I think this issue might be resolved if we would allow specifying language configurations in settings.json.