How to use VSCode Keymaps in Obsidian

Integrate Visual Studio Code keymaps into Obsidian for easy navigation and editing.

How to use VSCode Keymaps in Obsidian

How to use

Copy the code below into .obsidian/hotkeys.json at the root directory of your vault.

{
  "editor:swap-line-down": [
    {
      "modifiers": ["Alt"],
      "key": "ArrowDown"
    }
  ],
  "editor:swap-line-up": [
    {
      "modifiers": ["Alt"],
      "key": "ArrowUp"
    }
  ],
  "editor:delete-paragraph": [
    {
      "modifiers": ["Mod", "Shift"],
      "key": "K"
    }
  ],
  "workspace:close-others": [
    {
      "modifiers": ["Alt", "Mod"],
      "key": "T"
    }
  ],
  "workspace:copy-path": [
    {
      "modifiers": ["Alt", "Mod"],
      "key": "C"
    }
  ],
  "app:go-back": [
    {
      "modifiers": ["Ctrl"],
      "key": "-"
    }
  ],
  "app:go-forward": [
    {
      "modifiers": ["Ctrl", "Shift"],
      "key": "-"
    }
  ],
  "editor:toggle-bold": [
    {
      "modifiers": ["Mod", "Shift"],
      "key": "B"
    }
  ],
  "app:toggle-left-sidebar": [
    {
      "modifiers": ["Mod"],
      "key": "B"
    }
  ],
  "app:toggle-right-sidebar": [
    {
      "modifiers": ["Alt", "Mod"],
      "key": "B"
    }
  ],
  "file-explorer:open": [
    {
      "modifiers": ["Mod", "Shift"],
      "key": "E"
    }
  ],
  "command-palette:open": [
    {
      "modifiers": ["Mod", "Shift"],
      "key": "P"
    }
  ],
  "switcher:open": [
    {
      "modifiers": ["Mod"],
      "key": "P"
    }
  ],
  "workspace:split-vertical": [
    {
      "modifiers": [
        "Mod"
      ],
      "key": "\\"
    }
  ],
  "workspace:split-horizontal": [
    {
      "modifiers": [
        "Mod",
        "Shift"
      ],
      "key": "\\"
    }
  ]
}

Subscribe to Victor Nwanguma

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
jamie@example.com
Subscribe