Answer a question

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?

Answers

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

开发云社区提供前沿行业资讯和优质的学习知识,同时提供优质稳定、价格优惠的云主机、数据库、网络、云储存等云服务产品

更多推荐