我无法找出关闭新“功能”的选项,在以下情况下,VS Code HTML模式编辑器会为您键入一些内容:
我键入<b>
,当我打到最后一个>
时,然后键入</b>
,然后我必须将其删除并移至所需的位置。
在这种情况下,如何避免VS Code为我输入内容?我将这两个选项设置为:
"editor.quickSuggestions": false,
"editor.autoClosingBrackets": false,
Sort of the opposite of this question: VSCode not auto completing HTML
最佳答案
我找到了:
// Enable/disable autoclosing of HTML tags.
"html.autoClosingTags": true,
这项新功能默认将
autoClosingTags
设置为true
,但是,如果您习惯于键入而不会在文档中插入随机内容,这是一个副作用,那么这是一个破坏性的更改。将
autoClosingTags
设置为false
可恢复原始行为。"html.autoClosingTags": true,
关于visual-studio-code - VS Code HTML模式选项可关闭自动关闭标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46392075/