25

I have just had the chance to use Xcode 4, it seems to have a complex interface, I would like to know about the most useful shortcut keys so that I can take full advantage of it. Someone is willing to share?

sudo rm -rf
  • 29,408
  • 19
  • 102
  • 161
Hoang Pham
  • 6,899
  • 11
  • 57
  • 70
  • 2
    This is available in Xcode 3, but if you use 3-fingers to scroll up or down on the trackpad it will toggle between the .h and .m of the file you're viewing. Alternatively, you can use command-up arrow and command-down arrow. – rforte Mar 10 '11 at 18:05
  • In Preferences > Key Bindings you can find a list of all of them, with a search field. – Abhi Beckert Apr 04 '18 at 22:28

3 Answers3

57

Here are a few commands I use to open / close different areas of the screen

enter image description here

Robert
  • 37,670
  • 37
  • 171
  • 213
  • But how do you actually switch the cursor to the assistant editor? You'd still need the mouse yeah? – chakrit Oct 25 '12 at 08:45
  • 3
    Yes, the mouse is probably the easiest option. Although you could use cmd-j, down arrow, enter. – Robert Oct 25 '12 at 11:20
  • woah, thanks! Always wished for a way to quickly switch between the two. – chakrit Oct 26 '12 at 07:53
  • I'm an Eclipse user, and switching between project navigator and editor is one of the most common actions. Isn't really a shorter shortcut? PD: really useful image, Robert, thanks! – juanignaciosl Nov 22 '12 at 17:02
  • @juanignaciosl there are Move Focus to Next/Previous items in the Navigate menu. In Preferences you can assign them to whatever key you're used to from eclipse. – Abhi Beckert Apr 04 '18 at 22:27
31

Here you can find a nice overview of Xcode 4 shortcuts that you can print out:

http://cocoasamurai.blogspot.com/2011/03/xcode-4-keyboard-shortcuts-now.html

Felix
  • 35,354
  • 13
  • 96
  • 143
2

Command + Control + Up alternates between .m and .h files.

Raphael Oliveira
  • 7,751
  • 5
  • 47
  • 55