VSCode配置

{
  "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
  // 格式相关配置
}

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容