Xcode shortcuts to finding a file.

Apple, Cocoa, General

Cocoa Developers:

While programming with Xcode, I’ve developed several habits to make me a faster programmer. I’ll share these tidbits with you.

1. Use Cmd-Shift-D to quickly open files that you know the names to.

I’ll know that I want to open a particular file, such as NSTableView.m. So, I hit cmd-shift-d to bring up the “Open Quicky” dialog and type in nstableview (note that I don’t use the correct case, or extension, and it still works):

Tableview-Cmd-Shift-Dpicture 1

This will work for framework header files too.

2. Use Cmd-Alt-UpArrow to switch from the header to the implementation file. I use this ALL the time.

3. Use Cmd-Alt-F to focus the search field. Once it is focused, hit the down arrow to pop up the menu, and the up arrow once to select your project name (then hit enter):

Cmd-Shift-F-Focused-Picture 1

You can then search through all your files using the search field. This works particular well when you can’t remember the full filename.



Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments

Subscribe to new posts:

You'll get an email whenever a I publish a new post to my blog and nothing more. -- Corbin

As an Amazon Associate I earn from qualifying purchases.

(c) 2008-2024 Corbin Dunn

Privacy Policy

Subscribe to RSS feeds for entries.

64 queries. 0.147 seconds.

Log in