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.

Next in Cocoa
Your most important breakpoint in Cocoa

Leave a Reply

avatar
500
  Subscribe  
Notify of

(c) 2008-2019 Corbin Dunn

Privacy Policy

Subscribe to RSS feeds for entries.

90 queries. 0.226 seconds.

Log in