{
"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...