2

In xcode you can go back and forth in your program by swiping the mouse.

Is there an additional keyboard shortcut for that?

In visual studio 2010, for example, you do so by Ctrl - and Ctrl Shift -

How do you that in xcode with the keyboard?

7

Yes. The keys in Visual Studio 2010 that you refer to (for others that are unaware) are known as "Navigate Backward" and "Navigate Forward" and work as described in the the following Microsoft Blog allowing you to quickly move back and forward between places you’ve already been in your code, via a "Jump to Definiton" in Xcode, for example.

The equivalent keyboard shortcuts in Xcode 4 are:

Navigate Backward:

Ctrl + + Left Cursor

Navigate Forward:

Ctrl + + Right Cursor

5
  • How do you make that cool ⌘ sign anyway? – user4951 May 29 '12 at 9:19
  • @JimThio Personally, I just use the Character Viewer and drag them in from there. You can enable it on the menubar by checking System Preferences -> Keyboard -> "Show Keyboard & Character Viewers in menu bar". There are also some good tips on using the keyboard characters in this meta answer – binarybob May 29 '12 at 10:51
  • I'm wondering why "Ctrl + Apple + Left Cursor" works for me when the menu button says the shortcut is "fn + Left Cursor". Why does "fn" = "Ctrl + Apple" instead of just being the "fn" key? – Marty Sep 11 '12 at 1:26
  • @Marty Where are you seeing this? Under the "Navigate" menu in Xcode, on my Macbook, the "Go Back" and "Go Forward" menu items have shortcuts as I've described. – binarybob Sep 11 '12 at 9:36
  • Yeah under the navigate menu. It says "fn + Left" and "fn + left", but that just jumps to the beginning and end of the document. – Marty Sep 11 '12 at 9:56
0

Are you talking about -tab? This switches you between applications. It is similar to alt-tab in Windows. You can also press -` to switch between windows in the same application.

1
  • Not really but +1 for effort. – user4951 May 29 '12 at 9:19
0

I was searching for this for so long time and what works for me is:

⌃ + 2 (Ctrl + 2 - Shows previous history) then click ↓ - this will jump back to previous definition

⌃ + 3 (Ctrl + 3 - Shows next history) then click ↓ - this will jump to next definition

This will only work if you navigate through your class using ⌃ + 6 to jump between definitions.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .