vs code manual

格式化代码

 "editor.formatOnType": true,
  "editor.formatOnSave": true

在这里插入图片描述
在这里插入图片描述

在这里插入图片描述

代码片段 snippet

setting - user snippets

{
    
    
  "Print to console": {
    
    
    "prefix": "myvue",
    "body": [
      "<script setup lang=\"ts\">",
      "$2",
      "</script>",
      "",
      "<template>",
      "<div>",
      "$1",
      "</div>",
      "</template>",
      "",
      "<style scope>",
      "",
      "</style>",
      ""
    ],
    "description": "Auto to create vue3 snippet"
  }
}

猜你喜欢

转载自blog.csdn.net/MyFreeIT/article/details/131576383
今日推荐