我在编写网站的HTML代码时偶然发现了这个问题。每当我写“p”,“img”,“b from body”等标签时,格式化的第一个选项总是错误的。直到昨天才发生这种情况。我可能设置了一些错误的设置。
http://prntscr.com/n2oq39 http://prntscr.com/n2oqco
当我从“body”写“p”,“b”或从“img”写“i”时,我希望第一个选择格式化“<p></p>
”和“<body></body>
”,但实际格式是“<div class="post-body"></div>
”和“ <figure class="feature-image"><img src="image" alt=""></figure>
”
我想知道我应该怎样做才能以经典的方式自动格式化标签。我不能这样编码。始终必须按向下箭头键才能进入正常格式化。我尝试从Visual Studio Code中禁用和卸载所有扩展,并尝试重新安装程序本身。这些都没有奏效。
我找到了一种正确的方法。我在Visual Studio Code的设置中写了"editor.snippetSuggestions": "none"
。