Skip to content

Vscode Settings

Published: at 03:22 PM

My Vscode Settings

This is a combination of settings and keyboard shortcuts. Some of them are just VIM shortcuts.

ShortcutDescription
⌘ + 1Go to split 1
⌘ + 2Go to split 2
⌘ + jToggle terminal. (Also alt+t, ctrl+`)
⌘ + bToggle sidebar
⌘ + dSelect next occurrence
⌘ + kSkip occurrence under the cursor.
⌘ + \Split right.
⌘ + eRecent files. (You need to hold it)
shift + hGo to left tab
shift + lGo to right tab
shift + |Vertical split
shift + _Horizontal split
shift + dDelete until end of the line
shift + fFind in files
⌘ + shift + eToggle focus on file explorer.
space + eToggle sidebar. (Same as ⌘ + b)
gaSelect all occurences.
gbSelect next occurences.

VIM Settings

"vim.normalModeKeyBindings": [
    {
      "before": [":"],
      "commands": ["workbench.action.showCommands"],
      "silent": true
    },
    {
      "before": ["g", "a"],
      "commands": ["editor.action.selectHighlights"]
    },
    {
      "before": ["H"], // Focus previous tab at the left
      "commands": ["workbench.action.previousEditor"]
    },
    {
      "before": ["L"], // Focus next tab at the right
      "commands": ["workbench.action.nextEditor"]
    },
    {
      "before": ["Q"] // Close current tab "after": ["<C-w>", "q"]
    },
    {
      "before": ["<C-h>"], // Focus split window at left
      "commands": ["workbench.action.focusLeftGroup"]
    },
    {
      "before": ["<C-j>"], // Focus split window at right
      "commands": ["workbench.action.focusBelowGroup"]
    },
    {
      "before": ["<C-k>"], // Focus split window at above
      "commands": ["workbench.action.focusAboveGroup"]
    },
    {
      "before": ["<C-l>"], // Focus split window at below
      "commands": ["workbench.action.focusRightGroup"]
    },
    {
      "before": ["|"], // Split tab vertically
      "after": ["<C-w>", "v"]
    },
    {
      "before": ["_"], // Split tab horizontally
      "after": ["<C-w>", "s"]
    },
    {
      "before": ["<leader>", "f"], // Search text
      "commands": ["workbench.action.findInFiles"]
    },
    {
      "before": ["<leader>", "e"],
      "commands": ["workbench.view.explorer"]
    }
  ],
  "vim.insertModeKeyBindingsNonRecursive": [
    {
      "before": ["<C-s>"],
      "commands": [
        { "command": "workbench.action.files.save" },
        { "command": "extension.vim_escape" }
      ]
    }
  ]

Keyboard shortcuts

[
    {
        "key": "cmd+s",
        "command": "macros.saveAndExitVimInsertMode"
    },
    {
        "key": "cmd+e",
        "command": "workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup"
    },
    {
        "key": "space e",
        "command": "workbench.action.toggleSidebarVisibility",
        "when": "filesExplorerFocus && !inputFocus"
      },
      {
        "key": "a",
        "command": "explorer.newFile",
        "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
      },
      {
        "key": "f",
        "command": "explorer.newFolder",
        "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
      },
      {
        "key": "r",
        "command": "renameFile",
        "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
      },
      {
        "key": "x",
        "command": "filesExplorer.cut",
        "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
      },
      {
        "key": "y",
        "command": "filesExplorer.copy",
        "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus"
      },
      {
        "key": "p",
        "command": "filesExplorer.paste",
        "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus"
      }
]
[
    {
        "key": "ctrl+shift+g",
        "command": "-workbench.view.scm"
    },
    {
        "key": "ctrl+alt+1",
        "command": "gitlens.views.repositories:gitlens.focus"
    },
    {
        "key": "cmd+e",
        "command": "workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup"
    },
    {
        "key": "ctrl+shift+right",
        "command": "workbench.action.splitEditorRight"
    },
    {
        "key": "ctrl+shift+left",
        "command": "workbench.action.splitEditorLeft"
    },
    {
        "key": "ctrl+shift+up",
        "command": "workbench.action.splitEditorUp"
    },
    {
        "key": "ctrl+shift+down",
        "command": "workbench.action.splitEditorDown"
    },
    {
        "key": "ctrl+shift+right",
        "command": "workbench.action.moveEditorToRightGroup"
    },
    {
        "key": "ctrl+shift+left",
        "command": "workbench.action.moveEditorToLeftGroup"
    },
    {
        "key": "ctrl+shift+up",
        "command": "workbench.action.moveEditorToAboveGroup"
    },
    {
        "key": "ctrl+shift+down",
        "command": "workbench.action.moveEditorToBelowGroup"
    },
    {
        "key": "alt+t",
        "command": "workbench.action.terminal.toggleTerminal",
        "when": "terminal.active"
    },
    {
        "key": "ctrl+`",
        "command": "-workbench.action.terminal.toggleTerminal",
        "when": "terminal.active"
    }
]

Previous Post
Firefox'u Safari'ye dönüştürün
Next Post
Zellij Settings