Manbolo Blog

Manbolo Team Blog, creators of MeonArchives

Xcode Tips #2 - Quickly Navigate in Your Code

With this tip, you won’t use your mouse anymore while coding!

If you want to quickly navigate in your Xcode 4 project only with your keyboard:

  1. Jump to a particular file: type crtl+5, this will pop up a ’Show Group Files’ menu. Now, directly type the file of the name you want to open (or even part of it), and files are filtered to match your query (the filter is not case sensitive). Type enter, boom!, you open the file.
    Quickly open a file
    Quickly open a file

  2. Jump to a particular function (okay…selector): in your file, type ctrl+6 and then type the selector you want to target. You can even reach your beloved #pragma mark -: for instance, typing ’subviews’ will match #pragma mark - subviews managment in this particular case.

A side note: french developers who use french keyboard will maybe need to remap some of these keyboard shortcuts to more convenient ones (for instance, ctrl+( for finding files). To do this, ’Xcode > Preferences > Key Bindings’.

Big time saver!

From jc.

All Posts