Jump to the top is a simple matter, that is just CMD + UP. But the problem is, do XCode have a hotkey to jump back to the previous area, AFTER the CMD + UP? (In the same file).
Xcode tracks your entire movement history as soon as you open or create a project. Any file you go to, any symbol you look up - it all is appended to the IDE's navigation stack. Use ⌃ + ⌘ + ← and ⌃ + ⌘ + → to go back and forth between the source code locations you visited.
Xcode has two commands to move code up and down, which might save you time copying and pasting if you use multiple modifiers. These commands will move a focusing line of code up and down. command + option + [ or ] to move a line of code up and down.
Before pressing CMD + UP remember the current line number and then using CMD + L you can go back to the old line number.
CTRL + CMD + LEFT is the keyboard shortcut for Go Back. CTRL + CMD + RIGHT is for Go Forward.
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