vs _ 用户代码片段 _ html模板


自定义模板:首选项 -> 用户代码片段 - >(如果没有自己创个)html.json

 \t \" \n都是转义字符,而空格就是单纯的空格,输入时可以输入空格\ t 的意思是 横向跳到下一制表符位置 等于 Tab键\ " 的意思是 双引号\ n 的意思是回车换行

=============================================================================================================================================================

// 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. Placeholders with the // same ids are connected. // Example: // "Print to console": { //  "prefix": "log", //  "body": [ //    "console.log('$1');", //    "$2" //  ], //  "description": "Log output to console" // } "full sample": {     "prefix": "m", // 对应的是使用这个模板的快捷键     "body": [         "",         "",         "\t",         "\t\t",         "\t\t新页",         "\t\n",         "\t\n",         "\t",         ""     ] } }   =============================================================================================================================================================   {   // 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. Placeholders with the   // same ids are connected.   // Example:   // "Print to console": {   //  "prefix": "log",   //  "body": [   //    "console.log('$1');",   //    "$2"   //  ],   //  "description": "Log output to console"   // }   "full sample": {     "prefix": "m",// 对应的是使用这个模板的快捷键     "body": [       "",       "",       "\t",       "\t\t",       "\t\t新页",       "\t\n",       "\t\n",       "\t",       ""     ]   } }

=============================================================================================================================================================

{ "full sample": {     "prefix": "mb", // 对应的是使用这个模板的快捷键     "body": [       "",       "",       "",       "\t",       "\t",       "\t",       "\tmoban",         "",       "\n",       "\t",       "",       "</html>"     ], } }

=============================================================================================================================================================

{ "full sample": {     "prefix": "mb", // 对应的是使用这个模板的快捷键     "body": [       "",      "",       "\t",       "\t\t",       "\t\t新页",            "\t\n",       "\t\n",             "\t",       ""     ], } }

=============================================================================================================================================================

 

相关