I like the functionality of autoclosing brackets, quotations, etc... but when you're inside a string for instance: "<inside here>" and you start typing a single quote or if the quotes are inverted it'll try to auto pair quotations inside the string. Is there a way to disable this functionality inside strings?
- 2There is no separate switch for selectively disabling quotation matching, only a global setting for all.ifconfig– ifconfig2017-09-23 18:05:33 +00:00Commented Sep 23, 2017 at 18:05
- I've answered to this question on other place. Here is the link: stackoverflow.com/questions/56253814/…Kiril Dobrev– Kiril Dobrev2019-11-21 12:59:34 +00:00Commented Nov 21, 2019 at 12:59
5 Answers
// Controls if the editor should automatically close brackets after opening them "editor.autoClosingBrackets": false, In your settings.json file will disable auto-closing brackets, parentheses, quotes, etc.
There is no separate switch for selectively disabling quotation matching, only a global setting for all.
There is a setting to disable auto-closing of all quotes in the latest version of VSCode as of August 2018 in VSCode 1.27. Add this to your settings.json:
"editor.autoClosingQuotes": "never" If you want to disable this for a specific language, nest the above setting under a language-specific setting. For example, to exclusively disable this for the scheme language,
"[scheme]": { "editor.autoClosingQuotes": "never", }, Unfortunately, I do not think there is an option to exclusively disable auto-closing of single quotes or double quotes.
Comments
Try (Ctrl + Shift) while marker is in the string or something like that.