Skip to content

Instantly share code, notes, and snippets.

@kensleDev
Last active May 20, 2026 12:47
Show Gist options
  • Select an option

  • Save kensleDev/d9bacc0fbbb1f79ecdb68983508d3a8a to your computer and use it in GitHub Desktop.

Select an option

Save kensleDev/d9bacc0fbbb1f79ecdb68983508d3a8a to your computer and use it in GitHub Desktop.
VSCode
[
// Switches
{
"key": "alt+i",
"command": "workbench.action.toggleMaximizedPanel",
},
{
"key": "alt+b",
"command": "extension.toggleBool",
"when": "editorTextFocus",
},
{
"key": "ctrl+p",
"command": "workbench.action.quickOpen",
// "when": "!terminalFocus",
},
// {
// "key": "space",
// "command": "whichkey.show",
// "when": "neovim.init && neovim.mode == normal && editorTextFocus"
// },
// focus
{
"key": "ctrl+shift+c",
"command": "workbench.panel.chat.view.copilot.focus",
},
{
"key": "ctrl+shift+t",
"command": "-workbench.action.reopenClosedEditor",
},
{
"key": "ctrl+shift+t",
"command": "workbench.action.terminal.toggleTerminal",
},
// navigation
{
"key": "alt+m",
"command": "workbench.action.navigateLeft",
},
{
"key": "alt+,",
"command": "workbench.action.navigateDown",
},
{
"key": "alt+.",
"command": "workbench.action.navigateUp",
},
{
"key": "alt+/",
"command": "workbench.action.navigateRight",
},
// File tree / explorer
{
"key": "r",
"command": "renameFile",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus",
},
{
"key": "d",
"command": "deleteFile",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus",
},
{
"key": "c",
"command": "explorer.newFile",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus",
},
{
"key": "shift+c",
"command": "explorer.newFolder",
"when": "filesExplorerFocus && !inputFocus",
},
{
"key": ",",
"command": "list.focusDown",
"when": "listFocus && explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus",
},
{
"key": ".",
"command": "list.focusUp",
"when": "listFocus && explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus",
},
{
"key": "enter",
"command": "list.select",
"when": "explorerViewletVisible && filesExplorerFocus",
},
{
"key": "h",
"command": "list.collapse",
"when": "explorerViewletVisible && filesExplorerFocus && !inputFocus",
},
]
{
"workbench.sideBar.location": "right",
"extensions.experimental.affinity": {
"asvetliakov.vscode-neovim": 1,
},
"explorer.confirmPasteNative": false,
// "rewrap.wrappingColumn": 72,
"vim.insertModeKeyBindings": [
{
"before": ["j", "k"],
"after": ["<Esc>"],
},
],
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["<space>"],
"commands": ["whichkey.show"],
},
],
"vim.visualModeKeyBindingsNonRecursive": [
{
"before": ["<space>"],
"commands": ["whichkey.show"],
},
],
// which key
"whichkey.delay": 0,
"whichkey.sortOrder": "alphabetically",
"whichkey.bindings": [
// general
{
"key": "p",
"name": "Find File",
"type": "command",
"command": "workbench.action.quickOpen",
},
{
"key": "w",
"name": "Write File",
"type": "command",
"command": "workbench.action.files.save",
},
{
"key": "q",
"name": "Close file",
"type": "command",
"command": "workbench.action.closeActiveEditor",
},
{
"key": "n",
"name": "Previous Editor",
"type": "command",
"command": "workbench.action.previousEditor",
},
{
"key": "m",
"name": "Next Editor",
"type": "command",
"command": "workbench.action.nextEditor",
},
{
"key": "x",
"name": "Close editor",
"type": "command",
"command": "workbench.action.closeWindow",
},
{
"key": "a",
"name": "πŸ’€ Action",
"type": "bindings",
"bindings": [
{
"key": ";",
"name": "Next error",
"type": "command",
"command": "editor.action.marker.next",
},
{
"key": "j",
"name": "Previous error",
"type": "command",
"command": "editor.action.marker.prev",
},
{
"key": "r",
"name": "Previous editor",
"type": "command",
"command": "workbench.action.reopenClosedEditor",
},
],
},
{
"key": "g",
"name": "βž• Git",
"type": "bindings",
"bindings": [
{
"key": "g",
"name": "Git View",
"type": "command",
"command": "workbench.view.scm",
},
{
"key": "g",
"name": "Git Graph",
"type": "command",
"command": "git-graph.view",
},
{
"key": "c",
"name": "Git Commit",
"type": "command",
"command": "extension.conventionalCommits",
},
],
},
{
"key": "f",
"name": "πŸ”Ž Find/Files",
"type": "bindings",
"bindings": [
{
"key": "n",
"name": "New file",
"type": "command",
"command": "extension.advancedNewFile",
},
{
"key": "a",
"name": "In files",
"type": "command",
"command": "workbench.action.findInFiles",
},
{
"key": "r",
"name": "Replace in file",
"type": "command",
"command": "editor.action.startFindReplaceAction",
},
{
"key": "R",
"name": "Replace in files",
"type": "command",
"command": "workbench.action.replaceInFiles",
},
],
},
{
"key": "t",
"name": "βž• Terminal",
"type": "bindings",
"bindings": [
{
"key": "c",
"name": "Create",
"type": "command",
"command": "workbench.action.terminal.new",
},
{
"key": "n",
"name": "Next",
"type": "command",
"command": "workbench.action.terminal.focusNext",
},
{
"key": "p",
"name": "Previous",
"type": "command",
"command": "workbench.action.terminal.focusPrevious",
},
{
"key": "x",
"name": "Kill",
"type": "command",
"command": "workbench.action.terminal.kill",
},
{
"key": "v",
"name": "Split",
"type": "command",
"command": "workbench.action.terminal.split",
},
// {
// "key": "m",
// "name": "Maximize",
// "type": "command",
// "command": "macros.viewTerminal"
// },
],
},
],
"editor.wordWrap": "wordWrapColumn",
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
},
"[rust]": {
"editor.tabSize": 2,
"editor.wordWrapColumn": 100,
"editor.rulers": [100],
},
"[lua]": {
"editor.wordWrapColumn": 100,
"editor.tabSize": 2,
"editor.rulers": [100],
},
"editor.rulers": [80],
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"workbench.colorTheme": "Fleet Palenight",
"svelte.enable-ts-plugin": true,
"git.enableSmartCommit": true,
"js/ts.updateImportsOnFileMove.enabled": "always",
"git.confirmSync": false,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment