Skip to content

Instantly share code, notes, and snippets.

@Hecatoncheir
Last active July 5, 2023 17:49
Show Gist options
  • Save Hecatoncheir/61713ea1fd2b1c2cedf9a25538907d81 to your computer and use it in GitHub Desktop.
Save Hecatoncheir/61713ea1fd2b1c2cedf9a25538907d81 to your computer and use it in GitHub Desktop.
vscode
// Place your key bindings in this file to overwrite the defaults
[
// Toggle
{
"key": "ctrl+p",
"command": "workbench.action.showCommands"
},
{
"key": "alt+[BracketLeft]",
"command": "workbench.action.previousEditorInGroup"
},
{
"key": "alt+[BracketRight]",
"command": "workbench.action.nextEditorInGroup"
},
// Toggles
// {
// "key": "alt+1",
// "command": "workbench.action.toggleMenuBar"
// },
{
"key": "alt+1",
"command": "workbench.action.terminal.toggleTerminal"
},
{
"key": "alt+2",
"command": "workbench.action.toggleActivityBarVisibility"
},
{
"key": "alt+3",
"command": "macros.openFileExplorerAndFocusOpenedFile",
"when": "!filesExplorerFocus",
},
{
"key": "alt+3",
"command": "macros.closeFileExplorerAndFocusActiveEditor",
"when": "filesExplorerFocus",
},
{
"key": "alt+4",
"command": "macros.openSourceControl",
},
{
"key": "alt+5",
"command": "workbench.action.toggleStatusbarVisibility"
},
{
"key": "alt+6",
"command": "breadcrumbs.toggle"
},
{
"key": "alt+7",
"command": "workbench.action.terminal.toggleTerminal"
},
{
"key": "alt+8",
"command": "editor.action.toggleMinimap"
},
{
"key": "ctrl+`",
"command": "-workbench.action.terminal.toggleTerminal"
},
// Navigation
{
"key": "ctrl+k ctrl+i",
"command": "-editor.action.showHover",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+f",
"command": "editor.action.format"
},
{
"key": "ctrl+[BracketRight]",
"command": "editor.action.goToDeclaration"
},
{
"key": "ctrl+\\",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "ctrl+shift+[BracketRight]",
"command": "editor.action.previewDeclaration",
"when": "editorTextFocus"
},
{
"key": "alt+shift+[BracketRight]",
"command": "editor.action.referenceSearch.trigger",
"when": "editorTextFocus"
},
{
"key": "ctrl+\\",
"command": "editor.action.outdentLines",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+[BracketLeft]",
"command": "-editor.action.outdentLines",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+[BracketLeft]",
"command": "workbench.action.navigateBack"
},
// Update VIMMODE
{
"key": "ctrl+space",
"command": "editor.action.showHover",
"when": "vim.mode != 'Insert'"
},
{
"key": "shift+space",
"command": "editor.action.marker.next",
"when": "editorFocus"
},
// Like vim
{
"key": "ctrl+[BracketRight]",
"command": "extension.vim_ctrl+]",
"when": "editorTextFocus && vim.active && vim.use<C-]> && !inDebugRepl"
},
{
"key": "ctrl+k",
"command": "list.focusUp"
},
{
"key": "ctrl+j",
"command": "list.focusDown",
},
{
"key": "ctrl+j",
"command": "workbench.action.quickOpenSelectNext"
},
{
"key": "ctrl+k",
"command": "workbench.action.quickOpenSelectPrevious"
},
{
"key": "ctrl+k",
"command": "selectPrevSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
},
{
"key": "ctrl+j",
"command": "selectNextSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
},
{
"key": "ctrl+j",
"command": "search.focus.nextInputBox",
"when": "inputBoxFocus && searchViewletVisible && !searchInputBoxFocus"
},
{
"key": "ctrl+k",
"command": "search.focus.previousInputBox",
"when": "inputBoxFocus && searchViewletVisible && !searchInputBoxFocus"
},
{
"key": "alt+enter",
"command": "keyboard-quickfix.openQuickFix",
"when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly"
},
{
"key": "escape",
"command": "workbench.action.focusActiveEditorGroup",
"when": "!editorTextFocus"
},
{
"key": "ctrl+space",
"command": "editor.action.triggerSuggest",
"when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly"
},
{
"key": "ctrl+/",
"command": "macros.commentLineAndGoDown",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+/",
"command": "macros.commentLineAndGoDown",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+ctrl+/",
"command": "macros.goUpAndCommentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+/",
"command": "macros.goUpAndCommentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+k",
"when": "codeActionMenuVisible",
"command": "selectPrevCodeAction"
},
{
"key": "ctrl+j",
"when": "codeActionMenuVisible",
"command": "selectNextCodeAction"
}
]
{
"extensions.autoUpdate": true,
// EXPLORER
"explorer.confirmDragAndDrop": false,
"explorer.confirmDelete": false,
// WINDOW
"window.zoomLevel": 0,
"window.smoothScrollingWorkaround": true,
"window.menuBarVisibility": "toggle",
// EDITOR
"editor.fontFamily": "IBM Plex Mono, monospace",
"editor.fontSize": 15.3,
"editor.lineHeight": 24,
"editor.formatOnSave": true,
"editor.cursorBlinking": "phase",
"editor.renderIndentGuides": false,
"editor.renderLineHighlight": "all",
"editor.wordWrap": "on",
"editor.tabCompletion": true,
"editor.minimap.renderCharacters": false,
"editor.minimap.enabled": true,
"editor.smoothScrolling": true,
"editor.minimap.showSlider": "always",
"editor.minimap.maxColumn": 50,
"editor.minimap.side": "right",
"editor.renderControlCharacters": false,
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
},
// OTHER
"html.format.enable": true,
"tidyHtml.formatOnSave": false,
"csscomb.formatOnSave": false,
// GIT
"git.autofetch": true,
"git.confirmSync": false,
"git.enableSmartCommit": true,
// GO
"go.coverOnSave": false,
"go.coverOnTestPackage": true,
"go.coverageDecorator": {
"type": "gutter"
},
"go.autocompleteUnimportedPackages": true,
"go.enableCodeLens": {
"references": true,
"runtest": true
},
"go.gotoSymbol.includeImports": true,
"go.liveErrors": {
"enabled": true,
"delay": 300
},
// DART
"dart.debugSdkLibraries": false,
"dart.debugExternalLibraries": false,
"dart.runPubGetOnPubspecChanges": false,
"dart.checkForSdkUpdates": false,
// WORKBENCH
"workbench.colorTheme": "Espresso Light UI",
"workbench.activityBar.visible": true,
"workbench.statusBar.visible": true,
"workbench.editor.showTabs": true,
"workbench.sideBar.location": "left",
// CSPELL
"cSpell.language": "en,ru,en-US,en-GB",
"cSpell.enabledLanguageIds": [
"c",
"cpp",
"csharp",
"css",
"dart",
"go",
"handlebars",
"html",
"jade",
"javascript",
"javascriptreact",
"json",
"latex",
"less",
"markdown",
"php",
"plaintext",
"pub",
"python",
"restructuredtext",
"scss",
"text",
"typescript",
"typescriptreact",
"yaml",
"yml"
],
// SYNC
"sync.gist": "b242ec34ab3f08822a152d3c8ecec923",
"sync.lastUpload": "2018-08-10T08:39:20.490Z",
"sync.autoDownload": false,
"sync.autoUpload": true,
"sync.lastDownload": "2018-06-28T19:04:05.895Z",
"sync.forceDownload": false,
"sync.host": "",
"sync.pathPrefix": "",
"sync.quietSync": false,
"sync.askGistName": false,
"sync.removeExtensions": true,
"sync.syncExtensions": true,
// BRACKETPAIR
"bracketPairColorizer.activeScopeCSS": [
"borderStyle : dashed",
"borderWidth : 1px",
"borderColor : {color}; opacity: 0.3",
"backgroundColor : {color}; opacity: 0.1"
],
"bracketPairColorizer.scopeLineCSS": [
"borderStyle : dashed",
"borderWidth : 1px",
"borderColor : {color}; opacity: 1",
"backgroundColor : {color}; opacity: 0.1"
],
"bracketPairColorizer.consecutivePairColors": [
"()",
"[]",
"{}",
[
"<",
"/>"
],
[
"<",
"</"
],
[
"#2A9D8F",
"#F4A261",
"#b6d334",
"#2AB7CA",
"#dbe13c",
"#DA4167",
"#E9C46A",
"#E76F51"
],
"#DA4167"
],
"bracketPairColorizer.showBracketsInGutter": true,
"bracketPairColorizer.showBracketsInRuler": true,
"bracketPairColorizer.independentPairColors": [
[
"{}",
[
"#192539",
"#47754A",
"#6D911F",
"#A7C433",
"#b6d334",
"#dbe13c"
]
],
[
"()",
[
"#3D2645",
"#832161",
"#CA054D",
"#DA4167",
"#E8587C"
]
],
[
"[]",
[
"#6D6875",
"#B5838D",
"#E5989B",
"#FFB4A2",
"#FFCDB2",
]
]
],
"bracketPairColorizer.highlightActiveScope": true,
"bracketPairColorizer.timeOut": 630,
// VIM
"vim.searchHighlightColor": "rgba(255, 225, 175, 0.5)",
"vim.useSystemClipboard": true,
"vim.statusBarColorControl": false,
"vim.statusBarColors": {
"normal": [
"#DA4167",
"#FFCDB2",
],
"insert": [
"#D13438",
"#FFB4A2",
],
"visual": [
"#ffe1a2",
"#832161",
],
},
"vim.otherModesKeyBindingsNonRecursive": [
{
"before": [
"leader",
"w"
],
"after": [],
"commands": [
{
"command": "workbench.action.files.save",
"args": []
}
]
},
// {
// "before": ["ctrl+j"],
// "after": [],
// "commands": [
// {
// "command": "cursorDown",
// }
// ]
// },
// {
// "before": ["ctrl+k"],
// "after": [],
// "commands": [
// {
// "command": "cursorUp",
// }
// ]
// }
{
"before": [
"р"
],
"after": [],
"commands": [
{
"command": "extension.vim_left",
}
]
},
{
"before": [
"д"
],
"after": [],
"commands": [
{
"command": "extension.vim_right",
}
]
},
{
"before": [
"л"
],
"after": [],
"commands": [
{
"command": "extension.vim_up",
}
]
},
{
"before": [
"о"
],
"after": [],
"commands": [
{
"command": "extension.vim_down",
}
]
},
],
"vim.disableExtension": true,
"dart.showLintNames": true,
"extensions.ignoreRecommendations": false,
"indentRainbow.colors": [
"rgba(64,64,16,0.3)",
"rgba(32,64,32,0.3)",
"rgba(64,32,64,0.3)",
"rgba(16,48,48,0.3)"
],
"indentRainbow.errorColor": "rgba(128,32,32,0.6)",
"window.titleBarStyle": "custom",
"terminal.external.windowsExec": "bash",
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"java.configuration.checkProjectSettingsExclusions": false,
"[java]": {},
"go.useLanguageServer": true,
"vim.vimrc.enable": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment