weex笔记(8)一些weex-studio----vscode提高效率插件和设置
插件
- 自动提示路径插件
AutoFileName - 代码美化
Beautify、vetur - vue代码片段自动提示
Vue2 Snippets - es6代码提示
JavaScript(ES6) code snippets - 代码规范检查器
Eslint
设置
- 新建文件输入vue回车自动创建vue模板
首选项–用户代码片段–vue.json
输入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{
"Print to console": {
"prefix": "vue",
"body": [
"<template>",
" <div></div>",
"</template>",
"",
"<script>",
"export default {",
" data () {",
" return {",
" };",
" },",
"",
" components: {},",
"",
" computed: {},",
"",
" mounted() {},",
"",
" methods: {}",
"}",
"",
"</script>",
"<style lang='scss' scoped>",
"</style>"
],
"description": "Log output to console"
}
} - 保存自动格式化代码
设置formatOnSave为true
具体链接
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 Welcome Keven's Blog!