42

On OS X when I use the shortcut provided in documentation (⌘ + ⌃ + Up which I read as Command + Shift + Up) Sublime Text selects the text instead of moving the line up. Am I missing something?

jwpfox
  • 5,124
  • 11
  • 45
  • 42
Aurimas
  • 2,577
  • 5
  • 26
  • 37
  • Looking at [this](http://docs.sublimetext.info/en/latest/reference/keyboard_shortcuts_osx.html) it might be that they mean the `^` character and not the key shift. Below they have another symbol (⇧) which looks more like shift to me. – RedX Sep 06 '16 at 08:00

4 Answers4

94

According to https://docs.sublimetext.io/reference/keyboard_shortcuts_osx.html, it should be Command+Ctrl+Up.

  • ⌘ = Command
  • ⇧ = Shift
  • ⌥ = Option (a.k.a. Alt)
  • ⌃ = Ctrl
  • ⎋ = Esc
  • ↩︎ = Return
  • ⌫ = Delete (a.k.a. Backspace)

See also https://apple.stackexchange.com/questions/42615/is-there-a-list-of-menu-shortcut-icons for the meaning of the symbols.

Mark Amery
  • 143,130
  • 81
  • 406
  • 459
kennytm
  • 510,854
  • 105
  • 1,084
  • 1,005
17

I could not track down what was causing the key binding collision, so I set user key bindings in Sublime Text to an alternative. To do this, open Sublime Text. In the top menu navigate to Sublime Text > Preferences > Key Bindings then add these hashes to the array with the alternative key binding of your choice:

[
    { "keys": ["ctrl+alt+shift+super+up"], "command": "swap_line_up" },
    { "keys": ["ctrl+alt+shift+super+down"], "command": "swap_line_down" },
]
Sean M
  • 1,990
  • 20
  • 16
5

"control" + "cmd" + up (in Mac)

4
  • Command+Ctrl+Up

In a Visual Studio Code, configured with Sublime Text Keymaps, you can also use:

  • Option+Up
forzagreen
  • 2,509
  • 30
  • 38