Home > database >  Turning off VSCode's auto-enclosing quotes?
Turning off VSCode's auto-enclosing quotes?

Time:12-06

I can't figure out how to get VSCode to not enclose the current selection in single- or double-quotes if I select some text and then type ' or ". I've tried searching for a '-based key shortcut, and I’ve tried removing it as a keyboard shortcut with:

    {
        "key": "'",
        "command": "-editor.action.insertSnippet",
        "when": "textInputFocus"
    }

But that doesn’t seem to do anything.

I've also set the close-quote prefs to Never.

CodePudding user response:

  1. You can delete the selected text before you press '.
  2. The option is "editor.autoSurround" enter image description here or in the UI: enter image description here
  • Related