如何禁用自动报价功能?
当我按下'或'键时,我从不希望它在任何地方自动插入另一个。无论他们使它多么聪明,它都会以“无法预测”的形式出现在我身上,并分散我的注意力。做。
我输入了超过100 wpm的速度,我真的不需要按'或'键的帮助。
我尝试了以下设置,但没有一个禁用了这种不良行为:
{
"editor.autoClosingBrackets": false,
"editor.wordWrap": "off",
"html.autoClosingTags": false,
"editor.formatOnType": false,
"editor.suggestOnTriggerCharacters": false,
"editor.acceptSuggestionOnEnter": "off",
}
最佳答案
Edit: from vscode 1.27.0
"editor.autoClosingQuotes": "never", "editor.autoSurround": "never",// When the word is selected
我猜您可以像这样(
keybindings.json
)“键入”它们:{
"key": "'",
"command": "editor.action.insertSnippet",
"args": {
"snippet": "'"
},
"when": "editorTextFocus && !editorReadonly"
},
关于visual-studio-code - Visual Studio Code禁用自动报价,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48714304/