在vscode官网下载版本安装。javascript
打开文件->首选项->设置,就会进入到 settings.json 文件中,在左侧是VSCode默认的配置,在窗口右侧能够进行一系列的配置。如下是个人自定义配置css
{ "workbench.colorTheme": "Monokai", "workbench.iconTheme": "vscode-icons", //用于在Vue中体验Emmet "emmet.syntaxProfiles": { "vue-html": "html", "vue": "html" }, //配置Eslint "eslint.validate": [ "javascript", "javascriptreact", "html", "vue" ], //设置字体大小 "editor.fontSize": 18, "editor.tabSize": 2, "files.associations": { "*.vue": "vue" }, //Vetur默认使用 eslint-plugin-vue来检测 <template>,关闭该检测 "vetur.validation.template": false, "files.exclude": { "**/.git": true, "**/.svn": true, "**/.hg": true, "**/CVS": true, "**/.DS_Store": true, "**/.vscode": true, "**/.idea": true }, //配置能够格式化的文件 "beautify.language": { "js": { "type": [ "javascript", "json" ], "filename": [ ".jshintrc", ".jsbeautify" ] }, "css": [ "css", "scss" ], "html": [ "htm", "html", "vue" ] } }
打开文件->首选项->键盘快捷方式,点击keybindings.json修改快捷键(使用HookyQR.beautify的前提是安装了beautify):html
[ { "key": "ctrl+shift+f","command": "HookyQR.beautify","when": "editorTextFocus"}, { "key": "ctrl+shift+/", "command": "editor.action.blockComment"} ]
打开文件->首选项->设置,配置vue
"eslint.validate": [ "javascript", "javascriptreact", "html", "vue" ]
1.在vscode按下Shift + Alt + u快捷键,自动打开gist建立页面,在github页面上建立gist。java
2.回到vscode,将建立后gist的key输入vscode的框中,回车。react
3.建立成功可看到如下画面,记录下gist ID。webpack
4.再按Shift + Alt + u快捷键就是同步数据。git
1.Shift + Alt + D打开输入框,输入gist ID。github
2.配置同步成功可看到如下画面。web
将vscode更新至最新版1.31.1版本后,界面默认显示英文,默认的用户设置配置文件找不到。