vscode vue添加代码片段

 

 vscode vue添加代码片段

 

 

{
      "Print to console": {
        "prefix": "vue",
        "body": [
                "<template>",
                "  <div>",
                "  </div>",
                "</template>",
                "",
                "<script>",
                "  export default {",
                "  data() {",
                "    return {",
                "",
                "    };",
                "  },",
                "  created() {",
                "",
                "  },",
                "  mounted() {",
                "",
                "  },",
                "  methods: {",
                "",
                "  },",
                "}",
                "</script>",
                "",
                "<style lang='less' scoped>",
                "$4",
                "</style>"
        ],
        "description": "Log output to console"        
    }
}

新建vue页面,输入vue+tab

 

相关文章:

  • 2021-05-27
  • 2022-12-23
  • 2022-12-23
  • 2021-04-05
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-23
  • 2021-08-11
  • 2022-02-16
  • 2022-12-23
  • 2020-03-22
  • 2022-01-25
相关资源
相似解决方案