VS code 代码格式整理的配置
Posted yn-cn
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了VS code 代码格式整理的配置相关的知识,希望对你有一定的参考价值。
{
"workbench.iconTheme": "material-icon-theme",
"vetur.validation.template": true,
"vsicons.dontShowNewVersionMessage": true,
"editor.minimap.enabled": false,
"editor.fontSize": 16,
"emmet.includeLanguages": {
"vue-html": "html",
"javascript": "javascriptreact"
},
"window.zoomLevel": 0,
"workbench.activityBar.visible": true,
"window.menuBarVisibility": "default",
"workbench.statusBar.visible": true,
"editor.tabSize": 2,
"eslint.autoFixOnSave": true,
"files.associations": {
"*.vue": "vue"
},
"emmet.syntaxProfiles": {
"vue-html": "html",
"vue": "html"
},
"eslint.validate": [
"javascript",
"javascriptreact",
"vue",
"html",
"js"
],
"editor.tabCompletion": true,
"editor.quickSuggestions": {
"strings": true
},
"emmet.triggerExpansionOnTab": true,
"sync.gist": "3088e0a12a32cc763f995e21a356f36a",
"sync.lastUpload": "2018-03-04T02:50:04.711Z",
"sync.autoDownload": false,
"sync.autoUpload": false,
"sync.lastDownload": "",
"sync.forceDownload": false,
// "sync.anonymousGist": false,
"sync.host": "",
"sync.pathPrefix": "",
"sync.quietSync": false,
"sync.askGistName": false,
"path-intellisense.mappings": {
"/": "${workspaceRoot}",
"src": "${workspaceRoot}-c"
},
"extensions.ignoreRecommendations": false,
"material-icon-theme.showWelcomeMessage": false,
// "element-helper.version": "",
"files.autoSave": "off",
// 以下为stylus配置
"stylusSupremacy.insertColons": false, // 是否插入冒号
"stylusSupremacy.insertSemicolons": false, // 是否插入分好
"stylusSupremacy.insertBraces": false, // 是否插入大括号
"stylusSupremacy.insertNewLineAroundImports": false, // import之后是否换行
"stylusSupremacy.insertNewLineAroundBlocks": false,
"git.confirmSync": false,
"vetur.format.defaultFormatter.html": "js-beautify-html",
"vetur.format.defaultFormatter.js": "vscode-typescript",
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
// "workbench.panel.location": "bottom",
"gitlens.advanced.messages": {
"suppressCommitHasNoPreviousCommitWarning": false,
"suppressCommitNotFoundWarning": false,
"suppressFileNotUnderSourceControlWarning": false,
"suppressGitVersionWarning": false,
"suppressLineUncommittedWarning": false,
"suppressNoRepositoryWarning": false,
"suppressResultsExplorerNotice": false,
"suppressShowKeyBindingsNotice": true,
"suppressUpdateNotice": false,
"su ppressWelcomeNotice": true
},
"team.showWelcomeMessage": false, // 两个选择器中是否换行
"git.path": "D:/Git/bin/git.exe",
"git.autofetch": true,
"files.exclude": {
"**/.git": false,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true
},
"editor.multiCursorModifier": "ctrlCmd",
"element-helper.version": "2.3",
"semistandard._legacyModuleResolve": true,
"prettier.singleQuote": true,
"[markdown]": {
"editor.wordWrap": "on",
"editor.quickSuggestions": true
}
}
以上是关于VS code 代码格式整理的配置的主要内容,如果未能解决你的问题,请参考以下文章
VS Code 分享常用的插件配置setting.json(prettier格式化代码,vetur的配置,编辑器工作区的配置代码的蓝色波浪线的问题等)
VS Code 分享常用的插件配置setting.json(prettier格式化代码,vetur的配置,编辑器工作区的配置代码的蓝色波浪线的问题等)