美文网首页
VSCode配置

VSCode配置

作者: cocoaroger | 来源:发表于2023-02-22 11:39 被阅读0次
{
  "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配置

      本文链接:https://www.haomeiwen.com/subject/khrakdtx.html