1、安装插件HTML Snippets
2、打开VSCode的设置里打开settings.json,增加以下内容:
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
},
"editor.suggest.snippetsPreventQuickSuggestions": false,
"files.associations": {
"*.vue":"html"
},
3、保存。

本文介绍如何在VSCode中安装并配置HTMLSnippets插件,以提升HTML编辑效率。具体步骤包括安装插件、修改settings.json文件以启用快速建议功能,并将.vue文件关联为HTML类型。
1、安装插件HTML Snippets
2、打开VSCode的设置里打开settings.json,增加以下内容:
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
},
"editor.suggest.snippetsPreventQuickSuggestions": false,
"files.associations": {
"*.vue":"html"
},
3、保存。

1269
3万+
435

被折叠的 条评论
为什么被折叠?