Reputation: 3220
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?
Upvotes: 75
Views: 22432
Reputation: 9832
It is possible!
In settings.json which you can open via File>Preferences>UserSettings
UPDATE 2023
There are two settings
"editor.autoSurround": "never",
Possible values:
"editor.autoClosingQuotes": "never",
Possible values:
PS: In old ancient versions of vsCode, there was less granularity and a single setting would control quotes, braces and brackets. "editor.autoClosingBrackets" : "never"
Upvotes: 97
Reputation: 9425
Using VSCode version: 1.36.0
You can use: "editor.autoClosingQuotes": "never"
or
Upvotes: 13
Reputation: 1155
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"
Upvotes: 37