Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode hotkey jump to top and back

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).

like image 781
WYS Avatar asked Jul 03 '12 09:07

WYS


People also ask

How do I navigate back in Xcode?

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.

How do I move a line up and down in Xcode?

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.


2 Answers

Before pressing CMD + UP remember the current line number and then using CMD + L you can go back to the old line number.

like image 65
IFTTT Avatar answered Oct 15 '22 04:10

IFTTT


CTRL + CMD + LEFT is the keyboard shortcut for Go Back. CTRL + CMD + RIGHT is for Go Forward.

like image 41
neilvillareal Avatar answered Oct 15 '22 06:10

neilvillareal