{
"JAVA_HOME": "/Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home",
// workbench
"files.autoSave": "off",
"workbench.startupEditor": "newUntitledFile",
"workbench.editor.untitled.hint": "hidden",
"workbench.editor.enablePreview": false,
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false,
"editor.suggestSelection": "first",
"editor.suggest.snippetsPreventQuickSuggestions": false,
"editor.quickSuggestions": { "strings": true },
"security.workspace.trust.untrustedFiles": "open",
"search.exclude": {
"**/node_modules": true,
"**/dist": true
},
"git.ignoreLegacyWarning": true,
"redhat.telemetry.enabled": false,
"window.zoomLevel": 1,
"editor.minimap.enabled": false,
"path-autocomplete.extensionOnImport": true,
"path-autocomplete.pathMappings": {
"@": "${folder}/src"
},
// workbench
// 文件后缀处理
"files.associations": {
"pages.json": "jsonc",
"manifest.json": "jsonc",
"*.cjson": "jsonc",
"*.wxss": "css",
"*.wxs": "javascript",
"*.vm": "velocity",
"*.nvue": "vue"
},
"emmet.includeLanguages": {
"wxml": "html"
},
"files.exclude": {
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true
},
// 文件后缀处理
// jsonc颜色高亮样式
"color-highlight.enable": true,
"color-highlight.markerType": "dot-before",
"color-highlight.languages": ["jsonc"],
"color-highlight.markRuler": false,
"color-highlight.matchWords": false,
// jsonc颜色高亮样式
// better-comments
"better-comments.tags": [
{
"tag": "#",
"color": "#18b566",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": true,
"italic": false
},
{
"tag": "todo",
"color": "#FF8C00",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
}
],
// better-comments
// 格式相关配置
"editor.tabSize": 2,
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.run": "onSave",
"eslint.format.enable": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"eslint.validate": ["javascript", "javascriptreact", "vue", "html"],
"eslint.options": {
"extensions": [".js", ".vue", ".ts", ".tsx"]
},
"prettier.printWidth": 160,
"prettier.singleQuote": true,
"minapp-vscode.disableAutoConfig": true
// 格式相关配置
}
VSCode配置
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
推荐阅读更多精彩内容
- VScode配置msvc编译环境和配置Easyx图形库 安装msvc 下载安装msvc组件 Visual Stud...
- 说明 目前Flutter已经支持全平台了,想尝试下,但是本人没怎么用过Android Studio,所以现在基于V...
- 这是很不错的文章。https://www.clarencep.com/2017/03/18/edit-vue-fi...
- 2019/12/25 更新 VSCode 官网 常用插件 Eslint:代码检查, 跑ESlint的时候直接跑VS...