Visual Studio Code: Disable quote wrapping text selection

Visual Studio-CodeVscode Settings

Visual Studio-Code Problem Overview


When I want to change from double quotes to single quotes, I'm used to selecting the double quote, and then type a single quote. I'm intending to use the overwrite feature, but instead, I'm getting the 'wrap with quote' feature.

For example:

"id"

Would result in:

'"'id"

I always turn this auto surround with wrapping off, but I was unable to find a setting for this in the settings file...

Is there a way to turn this off?

Visual Studio-Code Solutions


Solution 1 - Visual Studio-Code

It is possible!

 "editor.autoClosingBrackets" : "never"

(Located in settings.json which you can open in Editor via File>Preferences>UserSettings)

Sadly this setting covers ALL auto wrappings. Including braces, double quotes, single quotes and brackets. You cannot control them individually

UPDATE: autoClosingBrackets is obsolete. The new suggestion is:

"editor.autoSurround": "never"

Solution 2 - Visual Studio-Code

I found this question via Google and the selected answer didn't work for me. I'm using VSCode version 1.27.2, and for me the I had to disable the Auto Surround option.

"editor.autoSurround": "never"

Solution 3 - Visual Studio-Code

Using VSCode version: 1.36.0

You can use: "editor.autoClosingQuotes": "never"

or

enter image description here

enter image description here

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionJaapView Question on Stackoverflow
Solution 1 - Visual Studio-CodeDrkawashimaView Answer on Stackoverflow
Solution 2 - Visual Studio-CodeSpaceCowboy2071View Answer on Stackoverflow
Solution 3 - Visual Studio-CodedaniloView Answer on Stackoverflow