Skip to content

Instantly share code, notes, and snippets.

@pouriaalmassi
Last active August 29, 2015 13:55
Show Gist options
  • Save pouriaalmassi/8690043 to your computer and use it in GitHub Desktop.
Save pouriaalmassi/8690043 to your computer and use it in GitHub Desktop.
Xcode / Simulator / lldb keybindings

Xcode Keybindings Cheat Sheet

Xcode

| Shortcut | Action | |---|---|---| | control 1 | Jump to Related Files menu item to see: includes, callers, callees | | control 6 | Jump to class method definitions overview. Simply begin typing to search. | | alt command J | Filter files in project navigator. | | alt command L | Filter Interface Builder Object Library | | command Y | Enable / disable all breakpoints. | | control command Y | Continue program execution from breakpoint. | | command shift O | Quick search files, class names, function names. | | command shift K | Clean build. | | command alt shift K | Clean build folder. | | control command E | Rename all occurrences of a variable in a single file. | | control I | Auto format selection. | | alt command [ or ] | Move selection up or down. | | command control [ or ] | Cycle through targets. | | command alt control [ or | Cycle through simulators. |

lldb

| Shortcut | Action | |---|---|---| | po | print object | | c | continue | | n | next | | s | step in | | register read | shortcut for all registers | | bt | backtrace | | frame variable -L self | who is self? | | po [[UIWindow keyWindow] recursiveDescription] | print the recursive description of the main window | | po [your view recursiveDescription] | recursive description of any view |

ARM assembly and lldb equivalent

| Shortcut | Action | |---|---|---| | po $r0 | self | | po $r1 | _cmd |

iOS Simulator Keybindings

| Shortcut | Action | |---|---|---| | command H | Home key (double tap for previous app overview). | | command 1 - 3 | Change simulator size. | | command left / right | Rotate simulator. |

Legend

| Symbol | Equivalent | |---|---|---| | ⌃ | control | | ⌥ | option / alt | | ⌘ | command | | ⇧ | shift | | ⎋ | the ESC Key symbol | | ⇪ | the Capslock symbol | | ⏎ | the Return symbol | | ⌫ | the Delete / Backspace symbol |

Additional Resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment