May 29

Some XCode shortcut keys I found very useful:

Editor keys

Key Description
Tab Accept the current completion and jump to after it
Escape, Control-comma, F5 Shows a pop-up list from which you can select from all the available code sense completions
Control-period to insert the most likely completion
Control-Slash / Shift-Control-Slash move between place holder tokens
Cmd-/ insert comment line
Ctrl+Left/Right Arrow Jump to previous/next word
Command-[ and Command-] indent and unindent selected text
Control-Command Left/Right fold and unfold the function
Command-Shift-E expand the editor view to full height of the window

Navigation keys

Key Description
Alt-Command-Up Switch between .m and .h file
Alt-Command-Left / Alt-Command-Right Navigate among open files back and forth.
Command-Shift-D Show the “Open Quickly” dialog for navigating to defined type or function in your project
Control-Option-1 Show list of all project files
Control-Option-2 Show list of members of current file
Control-Option-3 Show list of include files
Control-Option-4 Show list of bookmarks
Control-Option-5 Show list of breakpoints
Control-Shift-R Show the Console
Control-Alt-Command-R clear the log
Shift-Command-C Show the Class browser
Command-= Jump to the next error in the list of build errors
Command-Shift-F Display the multiple Find panel
Command-O Jump to the Project tab
Command-Shift-B Jump to the Build tab
Command-Shift-Y Jump to the Debug tab

Mouse tips

  • Double-click on the square brackets or parentheses to select everything between opening and closing brackets
  • Command-double click on a symbol to see the definition of a symbol
  • Option-double click on a symbol to see the documentation for that symbol

    Thanks to Adeem Basraa for his shortcuts list that helped me find my way around XCode and was a reference for this quick blog.

  • Leave a Reply

    You must be logged in to post a comment.

    preload preload preload