views:

283

answers:

4

In Visual Studio I can navigate backwards by pressing "ctrl minus". This is very useful when checking out the definition of a function and then immediately going back to the code I was working on.

How can I do this in Xcode? (I'm using version 3.1.2)

Cheers!

+1  A: 

Other than the 'complete shortcut list', I don't know.

You can find previous with G, but that's not really what you were after I think.

John Weldon
+2  A: 

There’s a Cmd-Alt-Left that goes back in editor history, and conversely Cmd-Alt-Right that browses forward. (Not sure if this is exactly what you are looking for.) It goes well with Cmd-Alt-Up that switches between the header and the implementation file.

zoul
+1  A: 

There are small arrows on top left corner of editor pane in Xcode.

stefanB
Unfortunately this doesn't seem to navigate backwards through the code.
MrDatabase
I selected method, jumped to definition in another file, then pressed the arrow which got me back to the original place. I'm not sure what else are you looking for?
stefanB
Hi stefanB, when I tried the arrows they would take me to/from unique files but would not take me back and forth within the same file. So for example if one file contains a relatively large amount of code I'd like to "jump back" from a function's definition within the same file.
MrDatabase
+2  A: 

Xcode 3.1.x is admittedly a bit weak in this respect. Happily, the navigation @zoul mentions (The back/forward arrows in the header bar, or ⌘⌥← and ⌘⌥→) is significantly improved in Snow Leopard, and should provide the finer-grained navigation you're hoping for. Sorry there's not an immediate solution, but hopefully it helps to know that a fix is coming...

Quinn Taylor