69

Back Arrow Broken In Xcode?

Is there keyboard command to go back/forward one file at a time.

Xcode 3.2 changed the behavior of Cmd-Opt <-- and -->. As noted in another question, they do not operate on a file level like in previous versions of Xcode, but on an "edit point", making it cumbersome to flip through a list of files (the quick way to do it, since Xcode does not support Tabs, as in Eclipse).

Rob Keniger found a partial solution that he noted in another post:

"Hold down the option key while you click the forward/backward arrows ..."

But this requires fiddling with the mouse. Is there any way to do it with the keyboard only?

EDIT: Later versions of Xcode (v7.2+) now have a Navigate menu (and it changes the keyboard shortcuts yet again): enter image description here

1
  • There is literally 'Navigate' Menu, but hey thanks helped Commented Jan 27, 2020 at 15:13

4 Answers 4

216

In XCode 4.4 the following sequence works:

Cmd + Ctrl +

and it operates on a file level.

Sign up to request clarification or add additional context in comments.

6 Comments

Cmd+Ctrl+(right arrow) also works. These are called "Go Back" and "Go Forward" in the Key Bindings section in case you want to remap them.
You have no idea how much time this is gonna save me! i already use Cmd+Ctrl+up to switch between .h and .m
@stevo.mit - can't seem to make it work in xcode 7... (ever since I switched it's just not working) - any idea why?
Mark this as the accepted answer! Works like a charm.
I feel obligated to say: this also works in Xcode 8.
|
22

On Xcode 8 I use 2 fingers left / right

1 Comment

I used to find this really annoying at the beginning. Oh boy, the time has really changed.
13

Beginning in XCode 3.2.3, the following key sequence works:

Cmd + Option + Shift +

Without the Shift key, it just goes back to the previous cursor position. Adding Shift jumps to the previous file (next file, in combination with ).

1 Comment

why can't you, the owner, switch your right answer? the answer below is more appropriate!
9

Navigation shortcuts for Xcode enter image description here

1 Comment

thank you @Wasim. Where did you find this info from?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.