visual-studio-code - VS Code HTML模式选项可关闭自动关闭标签

标签 visual-studio-code editor

我无法找出关闭新“功能”的选项,在以下情况下,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/

相关文章:

java - 是否有可能使 IntelliJ 显示提示更加稳健?

javascript - Yahoo YUI 2 - 富文本编辑器 - 无法使用 setEditorHTML 方法,出了什么问题?

c++ - 不使用 Ctrl+Space 的 Netbeans 中的可变代码完成

javascript - 如何利用 Intellisense 将 js 库导入 Typescript 模块/VS Code 任务

visual-studio-code - Visual Studio Code Intellisense 不适用于 NPM 包

angular - 对象可能为 Null

Haskell 学习环境

javascript - 当我单击或选择开始 div 时,如何在 editplus 中突出显示结束 div

linux - 在 Visual Studio Code 中使用脚本设置环境

c# - MSTest 单元测试在 VS 代码 : VS namespace doesn't exist? 中不起作用