4

Since the three finger swipe has been stolen in Lion, I find myself forced to resort to the keyboard to switch between .h and .m files. Two finger swipe left and right only seems to work infrequently, and that should be for scrolling anyways.

The keyboard command should be Control-Command-Up, but for some reason this takes me out of Xcode and shows the project file in Finder.

I have checked both System Preferences, and Xcode's key bindings settings, and I can't find anything wrong. Xcode is set properly, and I can't find any conflicts.

Community
  • 1
  • 1
arsenius
  • 12,090
  • 7
  • 58
  • 76

2 Answers2

27

Do you by any chance have another program such as Afloat installed that might be taking over the key combination? For instance, Afloat uses the Control-Command-Up key combo to do just what you described - show the open application's file in Finder.

Besides changing the key combo, the Xcode default Control-Command-Down will also switch to the counterpart.

Gucci D
  • 271
  • 2
  • 4
  • 11
    This was what was causing it for me. You can disable Afloat for Xcode with the following terminal command "defaults write com.apple.dt.Xcode AfloatDisableForThisApp -bool yes" – Ryan Dec 28 '11 at 02:49
  • Definitely the last place I would have looked for this solution. Thanks! – Matt H. Jun 18 '12 at 16:07
  • +1 Another frustrated developer giving you even more kudos! :) – idStar Aug 08 '12 at 18:34
  • It helped for a few minutes, but now its doing the same. Anything else that could help ? – Vojtech Vrbka Nov 01 '13 at 13:13
  • In my case, I was using an application called SizeUp that hijacked those Xcode key combinations for "Send Window Space Above" and "Send Window Space Below"... disabling those in SizeUp's preferences restored Xcode's "View Counterpart" functionality. – Evan K. Stone Apr 26 '14 at 15:33
0

I think it's a bug. For now I assigned another key combination: ^Q and ^Z to "jump to counterpart" and it works.

RawMean
  • 8,374
  • 6
  • 55
  • 82