Skip to content

Instantly share code, notes, and snippets.

@loganwright
Created June 9, 2015 15:39
Show Gist options
  • Save loganwright/b5a61c15b1c91929715f to your computer and use it in GitHub Desktop.
Save loganwright/b5a61c15b1c91929715f to your computer and use it in GitHub Desktop.
Xcode Shortcuts

##Useful Shortcuts

Here's a pretty decent reference as well: http://i.stack.imgur.com/Buohl.jpg

###Must Haves!

cmd + shift + o -- quick navigator -- works with classes, structs, functions, etc.

cmd + shift + j -- Show current file in navigator. Pairs well w/ quick navigator to see where the file fits into the full app.

###Other Good Ones

cmd + shift + o -- Quick Navigator

cmd + shift + j -- Show file in navigator

cmd + ctrl + e -- edit in scope

cmd + opt + [ or ] -- move selection up and down

cmd + / -- comment out code

cmd + \ -- add break point

cmd + click -- look into code

###Navigation Shortcuts

cmd + 0...8 -- left pane

cmd + opt + 0...2 -- right pane

cmd + shift + y -- open close debugger

cmd + shift + c -- show console

cmd + enter -- single view

cmd + shift + enter -- assistant editor

cmd + opt + shift + enter -- 'git' mode

###Xcode Git Shortcuts

cmd + ctrl + c -- View diff. I don't recommend committing through this interface, but you can.

cmd + opt + shift + enter -- enter git mode

  • Diff History
  • Current History
  • Blame
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment