vscode Vue ts 自定义模板

vscode Vue ts 自定义模板

  1. 首先打开vscode选择用户片段
    vscode Vue ts 自定义模板_第1张图片
  2. 选择vue.json
    vscode Vue ts 自定义模板_第2张图片
{
     
  // Place your snippets for vue 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:
  "vue-ts": {
     
    "prefix": "!vue-ts",
    "body": [
      "",
      "",
      "",
      "",

      ""
    ],
    "description": "vue ts 基础模板"
  }
}

输入对应的模板

prefix 选项里面就是调起现因的命令,如下
vscode Vue ts 自定义模板_第3张图片
vscode Vue ts 自定义模板_第4张图片
这样就ok拉~~~~~~

你可能感兴趣的:(前端工具,vue)