73

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",
}
royce3
  • 1,203
  • 1
  • 10
  • 17
  • Related: [How to disable automatically adding a closing curly brace or bracket insertion in VS Code?](https://stackoverflow.com/questions/46470363/how-to-disable-automatically-adding-a-closing-curly-brace-or-bracket-insertion-i) – Csq Jan 05 '23 at 10:57
  • I think Text editors should never enable features like this and let user enable if they want. Even Microsoft likes crazy features in new products. Very annoying to say the least – Ishmael Mavor Raines Mar 08 '23 at 15:34
  • I also had to disable "HTML: Auto Create Quotes". – royce3 May 26 '23 at 14:40

6 Answers6

40

Put this in your user settings:

"editor.autoClosingQuotes": "never"
David Braun
  • 5,573
  • 3
  • 36
  • 42
  • Where are the "user settings"? – Bitterblue Feb 16 '23 at 12:57
  • @Bitterblue, [this answer](https://stackoverflow.com/questions/65908987/how-can-i-open-visual-studio-codes-settings-json-file) describes how to open json settings files. – superswellsam Mar 22 '23 at 00:09
  • To edit the JSON user settings file press **F1** or **Ctrl** + **Shift** + **P** and search for "**Preferences: Open User Settings (JSON)**". – swimfar2 Sep 01 '23 at 23:20
26

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"
},
Alex
  • 59,571
  • 22
  • 137
  • 126
14

In addition to the accepted answer, I also had to disable "HTML: Auto Create Quotes" in preferences (search for "Quote")

pkExec
  • 1,752
  • 1
  • 20
  • 39
12

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

Ingo Baab
  • 528
  • 4
  • 7
  • This is the first half of the full solution. This link shows the second half as well: https://stackoverflow.com/a/48714796/4402572 – Jeff Wright Jan 07 '22 at 16:47
3

File > Preferences > Settings > type "quote" in search box

Joel
  • 61
  • 3
2
  1. Open Settings (File -> Preferences -> Settings) Ctrl+Comma
  2. Search for "editor close"
  3. You should find "Auto Closing Brackets" and "Auto Closing Quotes".
  4. Change them to "never ever"!
Bitterblue
  • 13,162
  • 17
  • 86
  • 124