配置
{
"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"
}
]