AppCode cheat sheet

94 shortcuts in 9 lessons

Reading a list won't make them stick. ShortcutFoo has you type each shortcut, then brings it back just before you'd forget it.

Editing I

13 shortcuts
  • ⌘/
    Comment / uncomment line
  • ⌘⌥/
    Comment / uncomment with block comment
  • ⌘⌥L
    Reformat code
  • ^⌥I
    Auto-indent line(s)
  • TAB
    Indent selected line
  • ⇧TAB
    Unindent selected line
  • ⌘⇧V
    Paste from recent buffers...
  • ⌘D
    Duplicate current line or selected block
  • ⌘BACKSPACE
    Delete line at caret
  • ^⇧J
    Smart line join
  • ⌘↵
    Smart line split
  • ⇧↵
    Start new line
  • ⌥BACKSPACE
    Delete to word start

Editing II

18 shortcuts
  • ^SPACE
    Basic code completion
  • ^⇧SPACE
    Smart code completion
  • ⌘⇧↵
    Complete statement
  • ^J
    Quick documentation lookup
  • ⇧F1
    External documentation
  • ⌘F1
    Show descriptions of error or warning at caret
  • ^N
    Generate code
  • ^O
    Override methods
  • ^I
    Implement methods
  • ⌘⌥T
    Surround with...
  • ⌥UP
    Select successively increasing code blocks
  • ⌥DOWN
    Decrease current selection to previous state
  • ^⇧Q
    Context info
  • ⌥↵
    Show intention actions and quick-fixes
  • ^⌥O
    Optimize imports
  • ⌘⇧U
    Toggle case for word at caret or selected block
  • ⌘⇧+
    Expand all
  • ⌘⇧_
    Collapse all

Navigation I

9 shortcuts
  • ⌘L
    Go to line
  • ⌘O
    Go to class
  • ⌘⇧O
    Go to file
  • ⌘⌥O
    Go to symbol
  • ⌘^UP
    Go to related header or source file
  • ⌘⌥B
    Go to implementaiton
  • ^⇧B
    Go to type declaration
  • ^3
    Go to bookmark number 3
  • ^9
    Go to bookmark number 9

Navigation II

14 shortcuts
  • ⌘E
    Recent files popup
  • ⌘⇧BACKSPACE
    Navigate to last edit location
  • ⌥F1
    Select current file or symbol in any view
  • ⌘]
    Move to code block end
  • ⌘[
    Move to code block start
  • ^H
    Type hierarchy
  • ^⌥H
    Call hierarchy
  • F2
    Next highlighted error
  • ⇧F2
    Previous highlighted error
  • F4
    Editor source
  • ⌘DOWN
    View source
  • F3
    Toggle bookmark
  • ⌥F3
    Toggle bookmark with mnemonic
  • ⌘F3
    Show bookmarks

Find / Replace

10 shortcuts
  • ⌘F
    Find
  • ⌘G
    Find next
  • ⌘⇧G
    Find previous
  • ⌘R
    Replace
  • ⌘⇧F
    Find in path
  • ⌘⇧R
    Replace in path
  • ⌥F7
    Find usages
  • ⌘F7
    Find usages in file
  • ⌘⇧F7
    Highlight usages in file
  • ⌘⌥F7
    Show usages

Compile And Run

6 shortcuts
  • ⌘F9
    Build project
  • ^⌥R
    Select configuration and run
  • ^⌥D
    Select configuration and debug
  • ^R
    Run
  • ^D
    Debug
  • ^⇧R
    Run context configuration from editor

Refactoring

11 shortcuts
  • ^T
    Show all refactorings
  • F5
    Copy refactoring
  • F6
    Move refactoring
  • ⇧F6
    Rename refactoring
  • ⌘F6
    Change signature
  • ⌘⌥M
    Extract method
  • ⌘⌥V
    Introduce variable
  • ⌘⌥P
    Introduce parameter
  • ⌘⌥E
    Introduce property
  • ⌘⌥C
    Introduce constant
  • ⌘⌥I
    Introduce instance variable

Debugging

9 shortcuts
  • F8
    Step over
  • F7
    Step into
  • ⇧F7
    Smart step into
  • ⇧F8
    Step out
  • ⌥F9
    Run to cursor
  • ⌥F8
    Evaluate expression
  • ⌘⌥R
    Resume program
  • ⌘F8
    Toggle breakpoint
  • ⌘⇧F8
    View breakpoints

Other

4 shortcuts
  • ⌘K
    Commit project to VCS
  • ⌥⇧C
    View recent changes
  • ^V
    VCS quick popup
  • ⌘⌥J
    Surround with live template
Achievement unlocked