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"
    }
]
相关推荐
谢尔登1 小时前
【已解决】Webstorm 每次使用 git pull/push 都要输入令牌/密码登录
ide·git·webstorm
南城猿4 小时前
Pycharm中Django框架使用{% load static %}模板,HTML报错
ide·pycharm·django
还是鼠鼠4 小时前
Node.js中间件的5个注意事项
javascript·vscode·中间件·node.js·json·express
竹之却6 小时前
Linux Vim 编辑器的使用
linux·编辑器·vim
汲海6 小时前
Jupyter 505
ide·python·jupyter
Alger_Hamlet6 小时前
Typora Markdown编辑器 for Mac
macos·编辑器
移远通信7 小时前
QuecPython 的 VScode 环境搭建和使用教程
ide·vscode·编辑器
阿杜杜不是阿木木7 小时前
使用ollama部署本地大模型(没有GPU也可以),实现IDEA和VS Code的git commit自动生成
linux·git·vscode·ai·intellij-idea·ollama
DKPT8 小时前
Eclipse,MyEclipse,IDEA,Vscode这些编译器和JDK的相爱相杀
java·eclipse·编辑器·intellij-idea·myeclipse
莲动渔舟1 天前
国产编辑器EverEdit - 扩展脚本:让EverEdit支持“批量查找”功能
编辑器·emeditor·notepad·everedit