royce3
royce3

Reputation: 1422

Visual Studio Code disable auto-quote

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",
}

Upvotes: 92

Views: 23361

Answers (7)

WestMountain
WestMountain

Reputation: 625

add this to settings.json

"[scheme]": {
    "editor.autoClosingQuotes": "never"
},

Upvotes: 1

Bitterblue
Bitterblue

Reputation: 14075

  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"!

Upvotes: 4

pkExec
pkExec

Reputation: 2066

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

Upvotes: 19

Joel
Joel

Reputation: 121

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

Upvotes: 3

Ingo Baab
Ingo Baab

Reputation: 608

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

Upvotes: 16

Alex
Alex

Reputation: 67531

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"
},

Upvotes: 31

David Braun
David Braun

Reputation: 5889

Put this in your user settings:

"editor.autoClosingQuotes": "never"

Upvotes: 44

Related Questions