VSCode 更好用的设置

配置

{
    "terminal.integrated.fontSize": 15,
    "security.workspace.trust.untrustedFiles": "open",
    "editor.minimap.enabled": false,
    "workbench.colorTheme": "Visual Studio 2017 Light - C++",
    "gnuGlobal.completion": "Disabled",
    "gnuGlobal.autoUpdate": "Disabled",
    "gnuGlobal.encoding": "utf-8",
    "gnuGlobal.globalExecutable": "/usr/local/bin/global",
    "gnuGlobal.gtagsExecutable": "/usr/local/bin/gtags",
    "editor.fontSize": 16,
    "window.zoomLevel": 0.5,
    "RainbowBrackets.depreciation-notice": false,
    "outline.showVariables": false,
    "workbench.editor.enablePreview": false,
    "workbench.settings.applyToAllProfiles": [
        "editor.stickyScroll.maxLineCount"
    ],
    "editor.stickyTabStops": true,
    "editor.stickyScroll.maxLineCount": 7,
    "editor.stickyScroll.defaultModel": "foldingProviderModel",
    "window.title": "${dirty}${activeEditorLong}${separator}${profileName}",
    "cmake.pinnedCommands": [
        "workbench.action.tasks.configureTaskRunner",
        "workbench.action.tasks.runTask"
    ],
    "editor.fontFamily": "JetBrains Mono, 'Droid Sans Mono', 'monospace', monospace",
    "cmake.showOptionsMovedNotification": false,
    "workbench.editor.tabSizing": "shrink",
    "git.openRepositoryInParentFolders": "never",
    
    "vim.useCtrlKeys": false,
    "vim.handleKeys": {
        "<C-a>": false,
        "<C-b>": false,
        "<C-c>": false,
        "<C-d>": false,
        "<C-e>": false,
        "<C-f>": false,
        "<C-g>": false,
        "<C-h>": false,
        "<C-i>": false,
        "<C-j>": false,
        "<C-k>": false,
        "<C-l>": false,
        "<C-m>": false,
        "<C-n>": false,
        "<C-o>": false,
        "<C-p>": false,
        "<C-q>": false,
        "<C-r>": false,
        "<C-s>": false,
        "<C-t>": false,
        "<C-u>": false,
        "<C-v>": false,
        "<C-w>": false,
        "<C-x>": false,
        "<C-y>": false,
        "<C-z>": false
    },
}

快捷键

// Place your key bindings in this file to override the defaults
[
    {
        "key": "ctrl+]",
        "command": "workbench.action.navigateForward",
        "when": "canNavigateForward"
    },
    {
        "key": "ctrl+shift+-",
        "command": "-workbench.action.navigateForward",
        "when": "canNavigateForward"
    },
    {
        "key": "ctrl+[",
        "command": "workbench.action.navigateBack",
        "when": "canNavigateBack"
    },
    {
        "key": "ctrl+alt+-",
        "command": "-workbench.action.navigateBack",
        "when": "canNavigateBack"
    },
    {
        "key": "ctrl+]",
        "command": "-editor.action.indentLines",
        "when": "editorTextFocus && !editorReadonly"
    },
    {
        "key": "ctrl+right",
        "command": "-editor.action.inlineSuggest.acceptNextWord",
        "when": "inlineSuggestionVisible && !editorReadonly"
    },
    {
        "key": "ctrl+right",
        "command": "-gitlens.key.ctrl+right",
        "when": "gitlens:key:ctrl+right"
    },
    {
        "key": "ctrl+left",
        "command": "-gitlens.key.ctrl+left",
        "when": "gitlens:key:ctrl+left"
    },
    {
        "key": "ctrl+left",
        "command": "-list.collapseAll",
        "when": "listFocus && !inputFocus && !treestickyScrollFocused"
    },
    {
        "key": "ctrl+left",
        "command": "-cursorWordLeft",
        "when": "textInputFocus"
    },
    {
        "key": "ctrl+right",
        "command": "-cursorWordEndRight",
        "when": "textInputFocus"
    },
    {
        "key": "ctrl+shift+right",
        "command": "-cursorWordEndRightSelect",
        "when": "textInputFocus"
    },
    {
        "key": "shift+alt+i",
        "command": "-editor.action.insertCursorAtEndOfEachLineSelected",
        "when": "editorTextFocus"
    },
    {
        "key": "ctrl+right",
        "command": "cursorLineEnd"
    },
    {
        "key": "ctrl+left",
        "command": "cursorLineStart"
    },
    {
        "key": "ctrl+b",
        "command": "-workbench.action.toggleSidebar"
    },
    {
        "key": "ctrl+t",
        "command": "-extension.vim_ctrl+t",
        "when": "editorTextFocus && vim.active && vim.use<C-t> && !inDebugRepl"
    },
    {
        "key": "ctrl+p",
        "command": "-extension.vim_ctrl+p",
        "when": "editorTextFocus && vim.active && vim.use<C-p> && !inDebugRepl || vim.active && vim.use<C-p> && !inDebugRepl && vim.mode == 'CommandlineInProgress' || vim.active && vim.use<C-p> && !inDebugRepl && vim.mode == 'SearchInProgressMode'"
    },
    {
        "key": "ctrl+p",
        "command": "-workbench.action.quickOpenNavigateNextInFilePicker",
        "when": "inFilesPicker && inQuickOpen"
    },
    {
        "key": "ctrl+b",
        "command": "-extension.vim_ctrl+b",
        "when": "editorTextFocus && vim.active && vim.use<C-b> && !inDebugRepl && vim.mode != 'Insert'"
    },
    {
        "key": "ctrl+b",
        "command": "-workbench.action.toggleSidebarVisibility"
    },
    {
        "key": "ctrl+b",
        "command": "editor.action.revealDefinition",
        "when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
    },
    {
        "key": "f12",
        "command": "-editor.action.revealDefinition",
        "when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
    }
]
相关推荐
or77iu_N42 分钟前
vue实现Nprogress进度条功能
vscode·vue
迷路爸爸1802 小时前
(经过验证)在 Ubuntu 系统中为 VSCode、PyCharm 终端及 Jupyter Notebook 配置代理的完整方案
vscode·ubuntu·pycharm·proxy·代理·代理配置·终端代理配置
Coding Happily2 小时前
VScode 配置 C语言环境
c语言·ide·vscode
YANQ6622 小时前
9.4 visualStudio 2022 配置 cuda 和 torch (c++)
ide·深度学习·visual studio
丘狸尾3 小时前
vscode 极简Linux下 cmake c++开发环境
linux·c++·vscode
纪伊路上盛名在3 小时前
用vscode写latex-1
ide·笔记·vscode·编辑器·知识图谱·学习方法
9毫米的幻想4 小时前
【Linux系统】—— vim 的使用
linux·运维·开发语言·c++·编辑器·vim
莲动渔舟4 小时前
国产编辑器EverEdit - 一个优秀的文本编辑器该有的删除功能
编辑器·notepad++·emeditor·everedit
yanxiaoyu1105 小时前
解决pycharm中动态/静态出图的设置问题
ide·python·pycharm
HZWANG305 小时前
在VSCode中设置bash命令行内容简写
vscode·bash