vscode配置(安装settings Sync同步)
支持eslint、vue文件等格式化
ts文件和ts的Vue设置格式化方式 prettier ESLint,方法前的空格怎么都搞不定,有空研究好了再改吧
js文件设置格式化方式javascript和typeScript的语言功能
获取令牌: 这个不能贴出来
gist ID: 520246735fd8f52f84584e3499f7e272
常用插件
beautify v1.5.0
code-settings-sync v3.4.3
korofileheader v4.7.2
LiveServer v5.6.1
vetur v0.24.0
vs-code-prettier-eslint v0.3.2
vscode-language-pack-zh-hans v1.47.3
设置json文件
{
"sync.gist": "520246735fd8f52f84584e3499f7e272",
"git.autofetch": true,
"vetur.format.defaultFormatter.js": "vscode-typescript",
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
"[vue]": {
"editor.defaultFormatter": "octref.vetur"
},
"editor.formatOnType": true,
"explorer.confirmDelete": false,
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"javascript.format.semicolons": "remove",
"typescript.format.semicolons": "remove",
"[typescript]": {
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
},
"fileheader.customMade": { //此为头部注释
"Autor": "dlb",
"Date": "Do not edit",
"LastEditors": "dlb",
"description": "Do not edit",
"LastEditTime": "Do not edit"
},
"fileheader.cursorMode": { //此为函数注释
"description": "",
"param": "",
"return": "",
"author": "dlb"
},
"fileheader.configObj": {
"autoAdd": true, // 默认开启自动添加头部注释,当文件没有设置头部注释时保存会自动添加
"autoAlready": true, // 默认开启
"prohibitAutoAdd": [
"json",
"md"
], // 禁止.json .md文件,自动添加头部注释
"wideSame": false, // 设置为true开启
"wideNum": 13 // 字段长度 默认为13
}
}