Visual Studio Code: Disable quote wrapping text selection

后端 未结 3 696
忘掉有多难
忘掉有多难 2020-12-29 17:37

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

相关标签:
3条回答
  • 2020-12-29 18:28

    Using VSCode version: 1.36.0

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

    or

    0 讨论(0)
  • 2020-12-29 18:30

    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"
    
    0 讨论(0)
  • 2020-12-29 18:33

    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"
    
    0 讨论(0)
提交回复
热议问题