Is there any way in XCode to shift Code up or down with the keyboard? In Notepad++ for instance this was done by Ctrl-Shift-Up or Down and it shifted the current line.
Am I just blind or is this feature just absent?
command + option + [ or ] to move a line of code up and down.
Jump to Line ( ⌘ + L )
If you put the cursor on a line of code and use the Alt+Up Arrow keys, the line of code you've selected moves up. If you use the Alt+Down Arrow keys, the line of code selected moves down.
⌥⌘] and ⌥⌘[
Have a look in the Xcode preferences under Key bindings for others.
If you are looking for even more have a look at Colin Wheeler's Xcode 4 Keyboard Shortcuts
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With