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
}
相关推荐
hua_ban_yu13 分钟前
新版本 idea 如何设置热部署
java·ide·intellij-idea
edjxj34 分钟前
Visual Studio应用程序无法正常启动(0xc0150002)
ide·visual studio
DeadPool loves Star1 小时前
新版VSCode登录Old Linux
linux·ide·vscode
专注VB编程开发20年1 小时前
delphi死嗑Pascal冷门编程语言,Borland不认可 “通用多语言 IDE”,认为 “专有语言才是护城河”
开发语言·ide·delphi
专注VB编程开发20年1 小时前
.NET 自带一套 可视化窗体设计器,如何快速开发迷你IDE
ide·.net
小松要进步1 小时前
VSCode
ide·vscode·编辑器
终端鹿2 小时前
VSCode插件Console Ninja详解:把DevTools搬进编辑器,调试效率翻倍
ide·vscode·编辑器
charlie1145141912 小时前
现代Qt开发——0.1——如何在IDE中配置Qt环境?
开发语言·c++·ide·qt·嵌入式
【ql君】qlexcel13 小时前
Visual Studio Code的使用,VS code常用扩展
ide·vscode·编辑器·visual studio·扩展
望眼欲穿的程序猿15 小时前
Vscode Clangd 无法索引 C++17 或者以上标准
java·c++·vscode