vscode user settings.json分享

分享一下我的settings.json,也欢迎大家分享自己的settings.json

使用方法:

Ctrl+Shift+P: 输入 User Settings, 选择json文件即可。

bash 复制代码
{
  // formatter
  "C_Cpp.clang_format_fallbackStyle": "{ \"BasedOnStyle\": \"Google\",  \"IndentWidth\": 4,  \"TabWidth\": 4,  \"ColumnLimit\": 110}",
  "C_Cpp.clang_format_style": "{ \"BasedOnStyle\": \"Google\",  \"IndentWidth\": 4,  \"TabWidth\": 4,  \"ColumnLimit\": 110}",
  "C_Cpp.intelliSenseEngine": "default",
  "C_Cpp.intelliSenseEngineFallback": "Enabled",

  // "[markdown]": {
  //   // "editor.defaultFormatter": "yzhang.markdown-all-in-one"
  //   "editor.defaultFormatter": "DavidAnson.vscode-markdownlint"
  // },
  "[python]": {
    "editor.defaultFormatter": "ms-python.black-formatter",
    "editor.formatOnType": true
  },
  // use black-formatter follow google format
  "black-formatter.args": ["--line-length", "80"],
  "isort.args": ["--profile", "black"],

  "pylint.args": [
    "--disable=C0114",
    "--disable=C0413",
    "--disable=C0303",
    "--disable=C0115",
    "--disable=C0116",
    "--disable=C0103",
    "--disable=W0718",
    "--disable=E1131",
    "--extension-pkg-allow-list=cv2",
    "--max-line-length=100"
  ],
  "[cpp]": {
    "editor.defaultFormatter": "xaver.clang-format",
    "editor.formatOnSave": true
  },
  "terminal.integrated.inheritEnv": true,

  // git related
  "git.confirmSync": false,
  "git.enableSmartCommit": true,
  "git.autofetch": true,

  // vscode UI
  "editor.fontFamily": "'Droid Sans Mono'",
  "editor.fontSize": 13,
  "editor.lineNumbers": "on",
  "editor.minimap.renderCharacters": false,
  "editor.quickSuggestions": {
    "other": true,
    "comments": true,
    "strings": true
  },
  "editor.suggestOnTriggerCharacters": true,

  "files.autoSave": "afterDelay",

  // workbench
  "workbench.startupEditor": "none",
  "workbench.colorTheme": "Default Light Modern",
  "workbench.editorAssociations": {
    "{git,gitlens}:/**/*.{md,csv}": "default",
    "file:/**/*.csv": "jupyter-data-wrangler",
    "{git,gitlens,git-graph}:/**/*.{md,csv,svg}": "default"
  },

  // Vscode Extensions
  // leetcode plugin
  "leetcode.endpoint": "leetcode-cn",
  "leetcode.workspaceFolder": "/home/tipriest/.leetcode",
  "leetcode.defaultLanguage": "cpp",
  // code-runner plugin
  "code-runner.executorMap": {
    "cpp": "cd $dir && g++ -std=c++11 *.cpp -g -o $fileNameWithoutExt && $dir$fileNameWithoutExt"
  },
  "code-runner.runInTerminal": true,
  // chatMoss
  "CodeMoss.enabled": false,

  "security.workspace.trust.untrustedFiles": "open",

  // Doxygen documentation generator set
  "doxdocgen.file.copyrightTag": [
    "@copyright Copyright (C) {year}, Tipriest, all rights reserved."
  ],
  "doxdocgen.file.customTag": [
    "@par 修改日志:",
    "<table>",
    "<tr><th>Date       <th>Author  <th>Description",
    "<tr><td>{date} <td>{author}  <td>",
    "</table>"
  ],
  "doxdocgen.file.fileOrder": [
    "file",
    "brief",
    "author",
    "date",
    "empty",
    "copyright",
    "empty",
    "custom"
  ],
  "doxdocgen.file.fileTemplate": "@file {name}",
  "doxdocgen.generic.authorEmail": "a1503741059@163.com",
  "doxdocgen.generic.authorName": "Tipriest",
  "doxdocgen.generic.authorTag": "@author {author} ({email})",
  "doxdocgen.generic.order": ["brief", "tparam", "param", "return", "author"],
  "doxdocgen.generic.paramTemplate": "@param[in]{indent:8} {param}{indent:25}My Param doc",
  "doxdocgen.generic.returnTemplate": "@return {type} ",
  "doxdocgen.generic.splitCasingSmartText": true,

  "explorer.confirmDragAndDrop": false,
  "explorer.confirmDelete": false,
  "cmake.configureOnOpen": true,

  "better-comments.tags": [
    {
      "tag": "!",
      "color": "#FF2D00",
      "strikethrough": false,
      "underline": false,
      "backgroundColor": "transparent",
      "bold": false,
      "italic": false
    },
    {
      "tag": "?",
      "color": "#3498DB",
      "strikethrough": false,
      "underline": false,
      "backgroundColor": "transparent",
      "bold": false,
      "italic": false
    },
    {
      "tag": "//",
      "color": "#474747",
      "strikethrough": true,
      "underline": false,
      "backgroundColor": "transparent",
      "bold": false,
      "italic": false
    },
    {
      "tag": "todo",
      "color": "#FF8C00",
      "strikethrough": false,
      "underline": false,
      "backgroundColor": "transparent",
      "bold": false,
      "italic": false
    },
    {
      "tag": "*",
      "color": "#98C379",
      "strikethrough": false,
      "underline": false,
      "backgroundColor": "transparent",
      "bold": false,
      "italic": false
    }
  ],
  "tabnine.experimentalAutoImports": true,
  "emmet.useInlineCompletions": true,

  "debug.console.fontSize": 16,
  "terminal.integrated.fontSize": 14,
  "chat.editor.fontSize": 18,
  "diffEditor.ignoreTrimWhitespace": false,

  "explorer.confirmPasteNative": false,
  "Codegeex.Privacy": true,
  "cmake.showOptionsMovedNotification": false,
  "files.associations": {
    "vector": "cpp",
    "*.tcc": "cpp",
    "unordered_set": "cpp",
    "*.rmd": "markdown",
    "cctype": "cpp",
    "clocale": "cpp",
    "cmath": "cpp",
    "csignal": "cpp",
    "cstdarg": "cpp",
    "cstddef": "cpp",
    "cstdio": "cpp",
    "cstdlib": "cpp",
    "cstring": "cpp",
    "ctime": "cpp",
    "cwchar": "cpp",
    "cwctype": "cpp",
    "any": "cpp",
    "array": "cpp",
    "atomic": "cpp",
    "hash_map": "cpp",
    "hash_set": "cpp",
    "strstream": "cpp",
    "bit": "cpp",
    "bitset": "cpp",
    "chrono": "cpp",
    "codecvt": "cpp",
    "complex": "cpp",
    "condition_variable": "cpp",
    "cstdint": "cpp",
    "deque": "cpp",
    "list": "cpp",
    "map": "cpp",
    "set": "cpp",
    "unordered_map": "cpp",
    "exception": "cpp",
    "algorithm": "cpp",
    "functional": "cpp",
    "iterator": "cpp",
    "memory": "cpp",
    "memory_resource": "cpp",
    "numeric": "cpp",
    "optional": "cpp",
    "random": "cpp",
    "ratio": "cpp",
    "regex": "cpp",
    "string": "cpp",
    "string_view": "cpp",
    "system_error": "cpp",
    "tuple": "cpp",
    "type_traits": "cpp",
    "utility": "cpp",
    "fstream": "cpp",
    "future": "cpp",
    "initializer_list": "cpp",
    "iomanip": "cpp",
    "iosfwd": "cpp",
    "iostream": "cpp",
    "istream": "cpp",
    "limits": "cpp",
    "mutex": "cpp",
    "new": "cpp",
    "ostream": "cpp",
    "shared_mutex": "cpp",
    "sstream": "cpp",
    "stdexcept": "cpp",
    "streambuf": "cpp",
    "thread": "cpp",
    "cfenv": "cpp",
    "cinttypes": "cpp",
    "typeindex": "cpp",
    "typeinfo": "cpp",
    "valarray": "cpp",
    "variant": "cpp"
  },
  "cmake.pinnedCommands": [
    "workbench.action.tasks.configureTaskRunner",
    "workbench.action.tasks.runTask"
  ],

  "[shellscript]": {
    "editor.defaultFormatter": "foxundermoon.shell-format"
  },
  "[jsonc]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "workbench.iconTheme": "vscode-icons",
  "window.zoomLevel": 1.5,
  "editor.formatOnPaste": true,
  "editor.formatOnSave": true,
  "diffEditor.renderSideBySide": false,
  "hediet.vscode-drawio.resizeImages": null,
  "leetcode.hint.configWebviewMarkdown": false
}
相关推荐
Diligently_11 天前
idea 中vm option 配置
java·ide·intellij-idea
我命由我1234511 天前
在 Android Studio 中,新建 AIDL 文件按钮是灰色
android·ide·android studio·安卓·android jetpack·android-studio·android runtime
Hello World . .11 天前
Linux:线程间通信
linux·开发语言·vscode
AC赳赳老秦11 天前
云原生AI故障排查新趋势:利用DeepSeek实现高效定位部署报错与性能瓶颈
ide·人工智能·python·云原生·prometheus·ai-native·deepseek
被制作时长两年半的个人练习生11 天前
claude code for vscode 配置 qwen3.5
ide·vscode·claude code·qwen3.5
圣心11 天前
Visual Studio Code 中的 AI 智能操作
ide·人工智能·vscode
吹牛不交税11 天前
关于vscode左侧资源管理器目录层级疑似异常的问题
ide·vscode·编辑器
xixi092411 天前
selenium IDE安装使用教程
ide·selenium·测试工具
嵌入小生00711 天前
线程间通信---嵌入式(Linux)
linux·c语言·vscode·嵌入式·互斥锁·线程间通信·信号量
上海合宙LuatOS11 天前
LuatOS核心库API——【json 】json 生成和解析库
java·前端·网络·单片机·嵌入式硬件·物联网·json