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
}
相关推荐
Veropatrinica2 小时前
VScode代码格式化插件black失效问题
ide·vscode·编辑器
AskHarries4 小时前
Spring Boot中对接Twilio以实现发送验证码和验证短信码
ide·macos·xcode
技术咖啡馆C4 小时前
二、IDE集成AI助手豆包MarsCode保姆级教学(使用篇)
java·ide·ai编程·idea-plugin·marscode
码狂☆5 小时前
win11 Visual Studio 17 2022源码编译 opencv4.11.0 + cuda12.6.3 启用GPU加速
ide·visual studio
计算机学姐6 小时前
基于Asp.net的零食购物商城网站
vue.js·vscode·后端·mysql·sqlserver·vue·asp.net
一匹电信狗8 小时前
C++11语法糖:auto和范围for循环详解
c语言·开发语言·c++·ide·算法·visual studio
trabecula_hj9 小时前
SpreadVue实现内置excel在线编辑并保存为后端可以接受的json格式
json·excel·spreadjs·spreadvue
阿珊和她的猫9 小时前
SyntaxError: Invalid or unexpected token in JSON at position x
json·状态模式
二哥不像程序员9 小时前
高效编程指南:PyCharm与DeepSeek的完美结合
ide·人工智能·python·pycharm·deepseek
四维碎片10 小时前
Visual studio + Qt 项目配置管理
ide·qt·visual studio