Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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", } 
like image 297
royce3 Avatar asked Feb 09 '18 21:02

royce3


2 Answers

Put this in your user settings:

"editor.autoClosingQuotes": "never" 
like image 116
David Braun Avatar answered Sep 18 '22 21:09

David Braun


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" }, 
like image 29
Alex Avatar answered Sep 20 '22 21:09

Alex