31

How do I disable the auto-quotes feature?

When I hit the ' or " key, I do not EVER want it to automatically insert another one anywhere. No matter how smart they make it, it just comes across to me as "unpredictable" and distracts me from what I'm trying to do.

I type over 100 wpm, I really don't need help hitting the ' or " key.

I have tried the following settings, but none of them have disabled this undesired behavior:

{
    "editor.autoClosingBrackets": false,
    "editor.wordWrap": "off",
    "html.autoClosingTags": false,
    "editor.formatOnType": false,
    "editor.suggestOnTriggerCharacters": false,
    "editor.acceptSuggestionOnEnter": "off",
}
0
15

Edit: from vscode 1.27.0

"editor.autoClosingQuotes": "never",
"editor.autoSurround": "never",// When the word is selected

I guess you can "type" them instead like this (keybindings.json):

{
    "key": "'",
    "command": "editor.action.insertSnippet",
    "args": {
        "snippet": "'"
    },
    "when": "editorTextFocus && !editorReadonly"
},
3
  • 3
    Unlike the "editor.autoClosingQuotes": "never" setting, this also works when a word is selected and a quote key is pressed. – Remco Haszing Oct 17 '18 at 8:42
  • I can see that the default is languageDefined, but how do we define it for a language? – Kyle Delaney Nov 19 '20 at 1:14
23

Put this in your user settings:

"editor.autoClosingQuotes": "never"
0
1

Here is a GUI-How-To-Change it:

  1. Open the Settings-Dialog:
    • Press Strg + , or Navigate with mouse to File | Settings
  2. Change the Value of:
    • editor.autoClosingQuotes to the desired never
  3. Thats it, no step 3 - only upvote my screenshot-answer..

Change Setting via the GUI

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.