VS Code keymaps in Sublime Text

0 minute read

I am used to VS code keymaps now, but I keep realizing how utterly fast Sublime Text is compared to the Microsoft behemoth. So I am gradually switching over, sloooowly, for some tasks.

A major pain was my muscle memory. Here’s the start of my solution:

  {"keys": ["alt+up"], "command": "swap_line_up"},
  {"keys": ["alt+down"], "command": "swap_line_down"},

  { "keys": ["super+alt+up"], "command": "select_lines", "args": {"forward": false} },
  { "keys": ["super+alt+down"], "command": "select_lines", "args": {"forward": true} },

  { "keys": ["shift+alt+up"], "command": "duplicate_line" },
  { "keys": ["shift+alt+down"], "command": "duplicate_line" },

(And yes, the final comma is actually parsed correctly by Sublime)