分享一下我的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
}