npm install -g typings
http://www.cnblogs.com/IPrograming/p/VsCodeTypings.html
安装eslint插件:ctrl + p
ext install vscode-eslint
安装addDocComments插件:
ext install addDocComments
设置:
{
"extensions.ignoreRecommendations": true,
"explorer.confirmDelete": false,
"workbench.colorTheme": "Quiet Light",
"editor.rulers": [120],
"editor.insertSpaces": true,
"editor.tabSize": 4,
"editor.detectIndentation": true,
"eslint.validate": [
"javascript",
"javascriptreact",
"html",
"vue"
],
"vetur.format.defaultFormatter.html": "js-beautify-html",
"explorer.confirmDragAndDrop": false,
}
添加箭头函数:
在file->Preferences->User Snippets->Javascript中添加以下内容
"prefix": "af",
"body": [
"() => {\n\n}"
],
"description": "arrow function"
}