Last active
July 25, 2024 16:16
-
-
Save Corner430/6bd02e6da93f498643d4a480cd5fe578 to your computer and use it in GitHub Desktop.
vscode setting.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"workbench.colorTheme": "GitHub Dark Dimmed", // 主题 | |
// "workbench.colorTheme": "Dracula Theme", | |
"workbench.iconTheme": "material-icon-theme", // 图标主题 | |
"workbench.sideBar.location": "left", // 侧边栏位置 | |
"files.autoGuessEncoding": true, // 启用自动猜测文件编码 | |
"editor.bracketPairColorization.enabled": true, // 启用括号配对颜色化 | |
"editor.fontSize": 22, // 设置编辑器的字体大小为 26 | |
"editor.renderWhitespace": "all", // 设置编辑器显示所有的空白字符 | |
"terminal.integrated.fontSize": 18, // 设置终端的字体大小为 18 | |
"files.autoSave": "afterDelay", // 文件自动保存 | |
"editor.formatOnSave": true, // 在保存文件时格式化 | |
// "editor.formatOnType": true, // 在键入一行后格式化 | |
"terminal.integrated.inheritEnv": false, // 集成终端不继承环境变量 | |
"editor.inlineSuggest.enabled": true, // 启用内联建议 | |
"search.smartCase": true, // 智能大小写搜索 | |
"terminal.integrated.stickyScroll.enabled": false, // 终端粘性滚动 | |
"hediet.vscode-drawio.theme": "Kennedy", // drawio 使用 Kennedy 主题 | |
"hediet.vscode-drawio.resizeImages": null, // drawio 使用默认的图片大小 | |
"notebook.formatOnSave.enabled": true, //在保存 notebook 文件时自动格式化 | |
"notebook.cellToolbarLocation": { | |
// 设置单元格工具栏的位置 | |
"default": "right", | |
"jupyter-notebook": "right" | |
}, | |
// Power Mode 配置 | |
"powermode.enabled": true, // 启用 Power Mode | |
"powermode.shake.enabled": false, // Power Mode 抖动 | |
"powermode.explosions.enabled": true, // Power Mode 爆炸效果 | |
"powermode.combo.location": "default", // Power Mode 连击位置 | |
// "editor.accessibilitySupport": "off", // 禁用编辑器的辅助功能 | |
"animations.Install-Method": "Custom CSS and JS", // 安装方式 | |
"vscode_custom_css.imports": [ | |
// "file:///c:/Users/11706/.vscode/extensions/brandonkirbyson.vscode-animations-2.0.3/dist/updateHandler.js" | |
"file:///Users/corner/.vscode/extensions/brandonkirbyson.vscode-animations-2.0.3/dist/updateHandler.js" | |
], | |
"animations.CursorAnimation": true, // 启用光标动画 | |
// picgo 配置 | |
"picgo.picBed.current": "github", | |
"picgo.picBed.github.branch": "main", | |
"picgo.picBed.github.path": "images/", | |
"picgo.picBed.github.repo": "Corner430/Picture", | |
"picgo.picBed.github.customUrl": "https://cdn.jsdelivr.net/gh/Corner430/Picture", | |
"picgo.picBed.github.token": "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", | |
"editor.defaultFormatter": "esbenp.prettier-vscode", // 设置默认的格式化工具 | |
"[c]": { | |
"editor.defaultFormatter": "ms-vscode.cpptools", | |
"editor.tabSize": 2 | |
}, | |
"C_Cpp.clang_format_fallbackStyle": "LLVM", // 设置 clang 格式化的回退样式为 LLVM | |
"C_Cpp.clang_format_style": "LLVM", // 设置 clang 格式化的样式为 LLVM | |
"C_Cpp.vcFormat.newLine.beforeOpenBrace.block": "sameLine", // 设置打开大括号前的换行方式为同一行 | |
"C_Cpp.vcFormat.newLine.beforeOpenBrace.type": "sameLine", // 设置打开大括号前的换行方式为同一行 | |
"C_Cpp.vcFormat.newLine.closeBraceSameLine.emptyFunction": true, // 设置空函数的关闭大括号同一行 | |
"C_Cpp.vcFormat.newLine.closeBraceSameLine.emptyType": true, // 设置空类型的关闭大括号同一行 | |
"C_Cpp.vcFormat.space.betweenEmptyBraces": true, // 设置空大括号之间的空格 | |
"C_Cpp.commentContinuationPatterns": [ | |
// 设置 C/C++ 代码的注释续行模式 | |
"/**" | |
], | |
"[cpp]": { | |
"editor.defaultFormatter": "ms-vscode.cpptools", | |
"editor.tabSize": 2 | |
}, | |
"cmake.configureOnOpen": true, // 打开 CMakeLists.txt 文件时自动配置 | |
"cmake.pinnedCommands": [ | |
"cmake.debugTarget", | |
"workbench.action.tasks.configureTaskRunner", | |
"workbench.action.tasks.runTask" | |
], | |
// 为 Python 语言设置特定的配置 | |
"python.languageServer": "Pylance", | |
"[python]": { | |
// 设置默认的 Python 格式化工具为 ms-python.black-formatter | |
"editor.defaultFormatter": "ms-python.black-formatter", | |
// 启用类型时格式化 | |
"editor.formatOnType": true | |
}, | |
"markdown.preview.fontSize": 16, | |
"markdown-preview-enhanced.mathBlockDelimiters": [ | |
// 设置数学块的分隔符 | |
["$$", "$$"], | |
["\\[", "\\]"] | |
], | |
"remote.autoForwardPortsSource": "hybrid", // 自动转发端口 | |
"remote.SSH.remotePlatform": { | |
"7000": "linux", | |
"7003": "linux", | |
"150.158.17.239": "linux", | |
"lab.corner430.top": "linux", | |
"7003out": "linux", | |
"7000out": "linux", | |
"7001out": "linux", | |
"7003in": "linux", | |
"7001in": "linux", | |
"7000in": "linux", | |
"10.0.0.4": "linux", | |
"aliyun.corner430.top": "linux", | |
"阿里云-新加坡": "linux", | |
"localhost": "linux", | |
"Ubuntu": "linux" | |
}, | |
// 杨超越 | |
"ycy.type": "url", | |
"ycy.customImages": [ | |
"https://cdn.jsdelivr.net/gh/Corner430/Picture1/images/20230726124142.png", | |
"https://cdn.jsdelivr.net/gh/Corner430/Picture1/images/20230726124327.png", | |
"https://cdn.jsdelivr.net/gh/Corner430/Picture1/images/20230726124422.png", | |
"https://cdn.jsdelivr.net/gh/Corner430/Picture1/images/20230726124506.png", | |
"https://cdn.jsdelivr.net/gh/Corner430/Picture1/images/20230726124614.png", | |
"https://cdn.jsdelivr.net/gh/Corner430/Picture1/images/20230726124656.png", | |
"https://cdn.jsdelivr.net/gh/Corner430/Picture1/images/20230726124728.png", | |
"https://cdn.jsdelivr.net/gh/Corner430/Picture1/images/20230726124804.png", | |
"https://cdn.jsdelivr.net/gh/Corner430/Picture1/images/20230726124835.png", | |
"https://cdn.jsdelivr.net/gh/Corner430/Picture1/images/20230726124901.png", | |
"https://cdn.jsdelivr.net/gh/Corner430/Picture1/images/20230726124932.png", | |
"https://cdn.jsdelivr.net/gh/Corner430/Picture1/images/20230726124956.png", | |
"https://cdn.jsdelivr.net/gh/Corner430/Picture1/images/20230726125020.png", | |
"https://cdn.jsdelivr.net/gh/Corner430/Picture1/images/20230726125049.png" | |
], | |
// copilot | |
"github.copilot.enable": { | |
"*": true, | |
"plaintext": true, | |
"markdown": true, | |
"scminput": false, | |
"cpp": true | |
}, | |
"github.copilot.editor.enableAutoCompletions": true, // 启用自动补全 | |
// leetcode | |
"leetcode.workspaceFolder": "/home/corner/.leetcode", | |
"leetcode.defaultLanguage": "cpp", | |
"leetcode.editor.shortcuts": [ | |
"submit", | |
"test", | |
"star", | |
"solution", | |
"description" | |
], | |
"leetcode.useWsl": true, | |
"leetcode.filePath": { | |
"default": { | |
"folder": "", | |
"filename": "${id}.${kebab-case-name}.${ext}" | |
} | |
}, | |
"leetcode.endpoint": "leetcode-cn", | |
"leetcode.codeTemplate": "#include <algorithm>\n#include <iostream>\n#include <map>\n#include <string>\n#include <unordered_map>\n#include <vector>\n#include <stack>\n\nusing namespace std;\n\n${code}\n\n// int main() {\n// Solution s;\n// return 0;\n// }", | |
"leetcode.hint.configWebviewMarkdown": false, // 禁用 Markdown 预览 | |
"leetcode.hint.commentDescription": false, // 禁用题目描述 | |
"leetcode.hint.commandShortcut": false, // 禁用命令快捷键 | |
// vim | |
"vim.leader": "\\", // 设置 leader 键为 \ | |
"vim.easymotion": true, // 启用 easymotion | |
"vim.incsearch": true, // 启用增量搜索 | |
"vim.useSystemClipboard": true, // 使用系统剪贴板 | |
"vim.useCtrlKeys": true, // 启用 Ctrl 键的 Vim 绑定 | |
"vim.hlsearch": true, // 启用高亮搜索 | |
"vim.ignorecase": true, // 忽略大小写 | |
"vim.smartcase": true, // 智能大小写 | |
"vim.textwidth": 80, // 自动换行的宽度 | |
"vim.insertModeKeyBindings": [ | |
// 在插入模式下的键绑定 | |
{ | |
// 将 jj 映射为 Esc | |
"before": ["j", "j"], | |
"after": ["<Esc>"] | |
} | |
], | |
"vim.normalModeKeyBindingsNonRecursive": [ | |
// 在普通模式下的非递归键绑定 | |
{ | |
// 将 leader 键后跟 \ 映射为 '' | |
"before": ["<leader>", "\\"], | |
"after": ["'", "'"] | |
}, | |
{ | |
// 将空格键映射为冒号 | |
"before": [" "], | |
"after": [":"] | |
}, | |
{ | |
// 将 n 映射为 nzz | |
"before": ["n"], | |
"after": ["nzz"] | |
}, | |
{ | |
// 将 N 映射为 Nzz | |
"before": ["N"], | |
"after": ["Nzz"] | |
}, | |
{ | |
// 将 Y 映射为 y$ | |
"before": ["Y"], | |
"after": ["y$"] | |
} | |
], | |
"vim.visualModeKeyBindings": [ | |
// 在可视模式下的键绑定 | |
{ | |
// 将空格键映射为冒号 | |
"before": [" "], | |
"after": [":"] | |
} | |
], | |
"vim.handleKeys": { | |
// vim 不接手的快捷键 | |
// "<C-a>": false, | |
"<C-f>": false | |
}, | |
"extensions.experimental.affinity": { | |
// To improve performance | |
"vscodevim.vim": 1 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment