VSCode使用指南.md

简书迁移

Posted by thrfox on June 29, 2020

常用插件

image.png image.png

建立代码模板

1.file-preferences-user snippets

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
"Create vue template": {
        "prefix": "vv",
        "body": [
                "<template>",
                "  <div>",
                "    ${4:content}",
                "  </div>",
                "</template>",
                "<script>",
                "export default {",
                "  name: \"${2:component_name}\",",
                "  data () {",
                "    return {",
                "    };",
				"  },",
				"  computed: {},",
				"  watch: {},",
				"  created() {},",
				"  mounted() {},",
				"  beforeDestroy() {},",
				"  methods: {},",
                "}",
                "</script>",
                "<style lang=\"${3:less}\" scoped>",
                "</style>",
                ""
        ],
        "description": "Create vue template"
}
}

2.