Xcode "move line" keyboard shortcut

How to move lines in Xcode via the menu OR hotkeys:

enter image description here

If you are using a Windows keyboard, the commands would translate to:

  • ⌥⌘[ ..... Alt + Win + [
  • ⌥⌘] ..... Alt + Win + ]

Copied from https://stackoverflow.com/a/9078952/852828 as that isn't the accepted answer to the linked duplicate.

Xcode 4 has a new set of command for moving the line where the cursor is or the selected text with command + option + [ or ]

⌥⌘[ or ⌥⌘]