Reputation: 681
I would like to auto-close brackets for .csv
files when they are open in vscode
. Given the following user settings...
{
"editor.autoSurround": "languageDefined"
...
"editor.autoClosingQuotes": "languageDefined"
}
... is there a user configuration where I can add or remove language modes to apply the autoClosingQuotes
setting(s) to without enabling it for all language modes?
Upvotes: 0
Views: 395
Reputation: 181218
What you want are called "language-specific settings". See using language-specific settings in vscode and documentation for same.
In your case:
"editor.autoClosingBrackets": "never",
"[plaintext]": {
"editor.autoClosingQuotes": "languageDefined"
}
You can play with those settings to achieve what you want. First I set all languages to never
, and then enable it only for plaintext
.
Why did I use [plaintext]
above? Because in looking through the choices (Ctrl-Shift-P and search for "configure language-specific settings" there isn't a .csv
choice. I assume plain text is as close as you are going to get.
Upvotes: 1