关于vscode自定义用户片段[即自定义快捷键]的方法
首先,在vscode左上角导航条中选择[文件]>[首选项]>[用户片段]
弹出如下窗口,在搜索框内输入 html.json 搜索
在打开的html.json编辑自定义模板,废话不多说,直接上代码:
{
// Place your snippets for html here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Pla