vscode

vscode的json配置

# 配置一

{
  "editor.wordWrap": "on",
  "winopacity.opacity": 255,
  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
  },
  "prettier": {
    // 格式化不加分号
    "semi": false,
    // 格式化为单引号
    "singleQuote": true,
    //  在方法括号里插入空格
    "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
    "prettier.printWidth": 150,
  },
  "editor.formatOnSave": true, //保存自动格式化
  "files.autoSave": "off", //关闭自动保存
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "vue-html",
    {
      "language": "vue",
      "autoFix": true,
    },
  ],
  "eslint.run": "onSave",
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": "explicit",
  },
  "explorer.confirmDelete": false,
  "editor.detectIndentation": false,
  "editor.tabSize": 2,
  "[html]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
  },
  "compilerOptions": {
    "target": "ES6",
    "module": "commonjs",
    "allowSyntheticDefaultImports": true,
    "baseUrl": "./",
    "paths": {
      "@/*": ["src/*"],
    },
  },
  "exclude": ["node_modules"],
  "todo-tree.tree.showScanModeButton": false,
  "htmltagwrap.tag": "div",
  "launch": {},
  "[vue]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
  },
  "[scss]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
  },
  "[css]": {
    "editor.defaultFormatter": "HookyQR.beautify",
  },
  "[json]": {
    "editor.quickSuggestions": {
      "strings": true,
    },
    "editor.suggest.insertMode": "replace",
    "gitlens.codeLens.scopes": ["document"],
    "editor.defaultFormatter": "vscode.json-language-features",
  },
  "editor.multiCursorModifier": "alt",
  "javascript.updateImportsOnFileMove.enabled": "always", //移动/重命名JS文件时,自动更新所有文件里的 import 路径。
  "typescript.updateImportsOnFileMove.enabled": "always",
  "eslint.alwaysShowStatus": true, //@引入快速导航
  "tabnine.experimentalAutoImports": true, //@引入快速导航
  "@": "${cwd}/src",
  "emmet.triggerExpansionOnTab": true, // 2025.7.29 新增
  //jsx中自动闭合
  "emmet.includeLanguages": {
    "javascript": "javascriptreact",
    "vue": "html", // 输入 .class 自动补全为 <div class=""></div>
  },
  "window.newWindowDimensions": "offset",
  "leek-fund.stocks": [
    "sh513330",
    "sh000001",
    "sh513310",
    "sh520510",
    "sz000510",
    "sz159875",
    "hk03690",
    "hk00700",
    "usr_ixic",
    "usr_dji",
    "usr_inx",
    "ZC0",
    "sh512010",
    "sh512480",
    "sh513010",
    "sh513360",
    "sz002261",
    "sz161226",
  ],
  "js/ts.implicitProjectConfig.experimentalDecorators": true,
  "explorer.confirmDragAndDrop": false,
  "[dart]": {
    "editor.formatOnSave": true,
    "editor.formatOnType": true,
    "editor.rulers": [80],
    "editor.selectionHighlight": false,
    "editor.suggest.snippetsPreventQuickSuggestions": false,
    "editor.suggestSelection": "first",
    "editor.tabCompletion": "onlySnippets",
    "editor.wordBasedSuggestions": "off",
  },
  "diffEditor.ignoreTrimWhitespace": false,
  "interview.updateNotification": 1653873669996,
  "interview.workspaceFolder": "d:\\work\\ziliao\\每日1题",
  "leetcode.endpoint": "leetcode-cn",
  "[typescript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
  },
  "workbench.welcomePage.preferReducedMotion": true, //关闭欢迎页的所有动画效果
  "workbench.reduceMotion": "on", //全局关闭动画效果
  "leek-fund.funds": [[]],
  "editor.maxTokenizationLineLength": 20000000,
  "bracketPairColorizer.depreciation-notice": false,
  "json.schemas": [

  ],
  "workbench.iconTheme": "material-icon-theme",
  "[markdown]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
  },
  "security.workspace.trust.untrustedFiles": "open",
  "workbench.startupEditor": "none",
  "debug.javascript.autoAttachFilter": "always",
  "leek-fund.expandUSStock": true,
  "leek-fund.interval": 3000,
  "volar.inlayHints.eventArgumentInInlineHandlers": false,
  "editor.unicodeHighlight.allowedCharacters": {
    " ": true,
  },
  "chatgpt.lang": "cn",
  "chatgpt.localeOverride": "zh-CN", // 备用键
  "chatgpt.promptPrefix": "你是一位资深的前端工程师,请用专业且简洁的中文回答...",
  "peacock.favoriteColors": [
    {
      "name": "Angular Red",
      "value": "#dd0531",
    },
    {
      "name": "Azure Blue",
      "value": "#007fff",
    },
    {
      "name": "JavaScript Yellow",
      "value": "#f9e64f",
    },
    {
      "name": "Mandalorian Blue",
      "value": "#1857a4",
    },
    {
      "name": "Node Green",
      "value": "#215732",
    },
    {
      "name": "React Blue",
      "value": "#61dafb",
    },
    {
      "name": "Something Different",
      "value": "#832561",
    },
    {
      "name": "Svelte Orange",
      "value": "#ff3d00",
    },
    {
      "name": "Vue Green",
      "value": "#42b883",
    },
  ],
  "super-chatgpt.key": "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",
  "editor.stickyScroll.maxLineCount": 2,
  "workbench.tree.stickyScrollMaxItemCount": 4,
  "dashyeah.title": "Projects",
  "dashyeah.debug": false,
  "dashyeah.database": [
    {
      "id": "b58e7335-3342-4dd3-9942-ea82e9b774c2",
      "name": "hyt-exam-system",
      "path": "file:///D%3A/working/hyt-exam-system",
      "icon": "codicon-folder",
      "accent": "#dc143c",
    },
    {
      "id": "e1029a7b-f1c8-4958-9cba-9067b9022be7",
      "name": "%28node%E8%87%AA%E5%8A%A8%E7%94%9F%E6%88%90%E6%96%87%E7%AB%A0%EF%BC%89vuepress",
      "path": "file:///D%3A/mypro/newproject/mayun/blog/vuepress/%28node%E8%87%AA%E5%8A%A8%E7%94%9F%E6%88%90%E6%96%87%E7%AB%A0%EF%BC%89vuepress",
      "icon": "codicon-folder",
      "accent": "#dc143c",
    },
  ],
  "dashyeah.folderSizing": "col-12",
  "dashyeah.columnSizing": "col-12 col-md-6",
  "dashyeah.showPaths": true,
  "dashyeah.fontSize": "font-size-normal",
  "dashyeah.rounded": true,
  "dashyeah.openOnNewWindow": true,
  "dashyeah.openInNewWindow": false,
  "hediet.vscode-drawio.resizeImages": null,
  "editor.tokenColorCustomizations": {
    "[*Light*]": {
      "textMateRules": [
        {
          "scope": "ref.matchtext",
          "settings": {
            "foreground": "#000",
          },
        },
      ],
    },
    "[*Dark*]": {
      "textMateRules": [
        {
          "scope": "ref.matchtext",
          "settings": {
            "foreground": "#fff",
          },
        },
      ],
    },
    "textMateRules": [
      {
        "name": "One Dark italic",
        "scope": [
          "comment",
          "entity.other.attribute-name",
          "keyword",
          "markup.underline.link",
          "storage.modifier",
          "storage.type",
          "string.url",
          "variable.language.super",
          "variable.language.this",
        ],
        "settings": {
          "fontStyle": "italic",
        },
      },
      {
        "name": "One Dark italic reset",
        "scope": [
          "keyword.operator",
          "keyword.other.type",
          "storage.modifier.import",
          "storage.modifier.package",
          "storage.type.built-in",
          "storage.type.function.arrow",
          "storage.type.generic",
          "storage.type.java",
          "storage.type.primitive",
        ],
        "settings": {
          "fontStyle": "",
        },
      },
    ],
  },
  "github.copilot.editor.enableAutoCompletions": true,
  "explorer.fileNesting.patterns": {
    "*.ts": "${capture}.js",
    "*.js": "${capture}.js.map, ${capture}.min.js, ${capture}.d.ts",
    "*.jsx": "${capture}.js",
    "*.tsx": "${capture}.ts",
    "tsconfig.json": "tsconfig.*.json",
    "package.json": "package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb",
    "*.sqlite": "${capture}.${extname}-*",
    "*.db": "${capture}.${extname}-*",
    "*.sqlite3": "${capture}.${extname}-*",
    "*.db3": "${capture}.${extname}-*",
    "*.sdb": "${capture}.${extname}-*",
    "*.s3db": "${capture}.${extname}-*",
  },
  "vue.autoInsert.dotValue": true,
  "prettier.printWidth": 150,
  "[cpp]": {
    "editor.defaultFormatter": "ms-vscode.cpptools",
  },
  "editor.unicodeHighlight.ambiguousCharacters": false,
  "Codegeex.Privacy": true,
  "leek-fund.stockGroups": ["My Stocks"],
  "editor.fontSize": 17,
  "fittencode.languagePreference.displayPreference": "zh-cn",
  "fittencode.languagePreference.commentPreference": "zh-cn",
  "[jsonc]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
  },
  "leek-fund.stockHeldTipShow": true,
  "bracket-pair-colorizer-2.depreciation-notice": false,
  "fittencode.selection.showCodeLens": false,
  "database-client.autoSync": true,
  "git.openRepositoryInParentFolders": "never",
  "git.autofetch": true,
  "vue-helper.framework": "element-plus",
  "sqlite3-editor.ui.tableSelector.displayColumns": true,
  "git.confirmSync": false,
  "cmake.showConfigureWithDebuggerNotification": false,
  "workbench.secondarySideBar.defaultVisibility": "hidden",
  "workbench.colorTheme": "One Dark Vivid",
  "terminal.integrated.stickyScroll.enabled": false,
  "Codegeex.License": "",
  "gitlens.ai.model": "vscode",
  "gitlens.ai.vscode.model": "copilot:gpt-4.1",
  "claudeCode.preferredLocation": "panel",
  "leek-fund.aiStockHistoryRange": "1y",
  "fittencode.inlineCompletion.enable": false,
  "vue.editor.reactivityVisualization": true,
  "editor.mouseWheelZoom": true,
  "fittencode.disableSpecificInlineCompletion.suffixes": "ts",
  "editor.accessibilitySupport": "off",
  "Codegeex.CompletionDelay": 0.3,
  "Codegeex.Local": {
    "apiURL": "https://platform.moonshot.cn/",
    "useChatGLM": true,
    "chatGLM": {
      "apiKey": "sk-0iepLjrcIkGnw436Jw6U5txnT6AKdsh02kUHpIC4CZtYFY1V",
      "model": "",
    },
    "chat": {
      "useDefaultSystemPrompt": true,
      "systemPrompt": "",
      "temperature": 0.2,
      "top_p": 0.95,
      "max_tokens": 1024,
      "presence_penalty": 1,
    },
    "completions": {
      "useDefaultSystemPrompt": true,
      "systemPrompt": "",
      "temperature": 0.2,
      "top_p": 0.95,
      "max_tokens": 64,
      "presence_penalty": 1,
    },
  },
  "kilo-code.debug": false,
  "kilo-code.allowedCommands": ["git log", "git diff", "git show"],
  "kilo-code.deniedCommands": [],
  "roo-cline.debug": false,
  "roo-cline.allowedCommands": ["git log", "git diff", "git show"],
  "roo-cline.deniedCommands": [],
  "claudeCode.selectedModel": "claude-3-haiku-20240307",
  "chat.viewSessions.orientation": "stacked",
  "Codegeex.EnableExtension": false,
  "chat.tools.urls.autoApprove": {
    "https://code.visualstudio.com": true,
    "https://github.com/microsoft/vscode/wiki/*": true,
    "https://www.figma.com": true,
  },
  // 关闭 TypeScript 从 package.json 中自动导入
  "typescript.preferences.includePackageJsonAutoImports": "off",
  "javascript.preferences.includePackageJsonAutoImports": "off",
  // 强制 TypeScript 自动选最短的(可能是相对,也可能是绝对)
  "typescript.preferences.importModuleSpecifier": "shortest",
  "dart.flutterSdkPath": null,
  // 强制 JavaScript 自动选最短的(可能是相对,也可能是绝对)
  "javascript.preferences.importModuleSpecifier": "shortest",
}
上次更新: