8/1/16

Xcode Keyboard Shortcuts

v11.3

KEYS
  cmd  command/apple C
  ctl  control       L
  opt  option/alt    O
  shf  shift         S
  ent  enter         E
  del  delete        D
  spc  space         _
  clk  click         K


FILE
  C T|N   new tab/file...
  CS T|N  new window/new project...
  CL N    new workspace...
  COS N   new playground
  CO N    new group
  C O     open...
  CS O    open quickly..., file or symbol name
  C >     open hidden files, toggle in file-open dialog (CS .)
  CO A    add files
  C W     close tab
  CS W    close window
  CLO W   close other windows
  CL W    close current file, back to previous file
  CO W    close workspace
  C S     save
  CS S    duplicate..., save as...
  CSO S   save as...
  CO S    save all
  CL S    create snapshot...


NAVIGATE
  C `       next window
  C ~       previous window (CS `)
  C {|}     previous/next tab
  CL left   back
  CL right  forward
  CL up     toggle header/source file, jump to next counterpart
  L /       next placeholder //<##>
  L ?       previous placeholder (LS /) //<#placeholder 2#>
  C L       line number, goto
  CL J      definition, (cmd + click)
  CS L      selection
  C J       editor
  CO `      focus next area
  CO ~      focus previous area (COS `)
  CO <      open in... (COS ,)
  CO ,      open in assistant editor
  CS J      reveal in project navigator


JUMP BAR
  L 1  grouped files, recent, unsaved, includes, storyboard outlets
  L 2  previous history
  L 3  next history
  L 4  project
  L 5  folder files
  L 6  function list, code comment tags, storyboard view controller scene

  JUMP BAR CODE COMMENT TAGS
  // TODO: ...
  // FIXME: ...
  // MARK: m1
  // ???: wtf
  // !!!: foo


EDIT
  C Z    undo
  CS Z   redo
  CO V   special paste
  COS V  paste and preserve formatting
  CD     delete to beginning of line
  L D    delete forward, cursor stationary
  L K    delete to end of line, paragraph
  CL_    emoji & symbols


FIND
  C F    find
  CO F   find and replace
  CS F   find in workspace
  COS F  find and replace in workspace
  C G    find next
  CS G   find previous
  C E    use selection for find
  CS E   use selection for replace
  CO J   filter in navigator
  CO L   filter in library


FORMAT
  CLS T  show fonts


EDITOR
show editor only                                              C   enter
----------
canvas                                                        CO  enter
assistant                                                     CLO enter
layout >
----------
show completions                                              L_  (esc)
show code actions                                             CS A
edit all in scope                                             CL E
refactor >
----------
selection >
    select all symbols
    split selection by lines
    balance delimiters
    select column up                                          LS up
    select column down                                        LS down

structure >
    re-indent                                                 L I
    shift right                                               C ]
    shift left                                                C [
    move line up                                              CO [
    move line down                                            CO ]
    comment selection, toggle                                 C /
    add documentation                                         CO /

code folding >
    fold                                                      CO  left
    unfold                                                    CO  right
    unfold all
    fold methods & functions                                  COS left
    unfold methods & functions                                COS right
    fold comment blocks                                       CLS left
    unfold comment blocks                                     CLS right

syntax coloring >
    default for file type
    none

font size >
    increase                                                  C +
    decrease                                                  C -
    reset                                                     CL 0

theme >
----------
minimap                                                       CLS M
authors                                                       CLS A
----------
invisibles
----------
show last change for line
create code snippet
----------
jump to definition                                            CLK
select block of text                                          OK
move cursor to start of file                                  C up
move cursor to end of file                                    C down
move cursor to start of line                                  C left   (L A)
move cursor to end of line                                    C right  (L E)
move cursor left one word                                     O left
move cursor right one word                                    O right
center selection in visible area                              L L
cycle thru code completion                                    L .
cycle backward thru code completion, reverse                  L >  (LS .)
  

PRODUCT
  C B|R|.  build/run/stop
  CS K     clean
  COS K    clean build folder
  CS R     build for running
  CS I     build for profiling
  CL R     run without building
  C I      profile
  CS B     analyze
  CL [|]   select previous/next scheme, workspace project
  C <      edit scheme (CS ,)
  CLO U    test, xctest
  CLO G    test again


DEBUG
  F6|F7|F8  step over/into/out
  CL Y      toggle pause, continue
  CL C      continue to current line
  C K       clear console
  CO K      reload console
  L F6|F7   step over/into instruction
  LS F6|F7  step over/into thread
  C \       add breakpoint at current line
  C Y       toggle activate breakpoints
  CS M      view memory


VIEW
editor >
    focus
    
    show related items                                       L 1
    show previous history                                    L 2
    show next history                                        L 3
    show top level items                                     L 4
    show group files                                         L 5
    show document items                                      L 6

show code review, hide, toggle                               COS enter
----------
change editor orientation
reset editor sizes
reset assistant selection                                    COS Z
----------
navigators >
    show project navigator                                   C 1
    show source control navigator                            C 2
    show symbol navigator                                    C 3
    show find navigator                                      C 4
    show issue navigator                                     C 5
    show test navigator                                      C 6
    show debug navigator                                     C 7
    show breakpoint navigator                                C 8
    show report navigator                                    C 9
    
    show navigator, hide, toggle                             C 0

debug area >
    activate console                                         CS C
    show debug area, hide, toggle                            CS Y

inspectors >
    show file inspector                                      CO 1
    show history inspector                                   CO 2
    show quick help inspector                                CO 3
    
    show inspectors                                          CO 0

show library                                                 CS L
----------
hide toolbar                                                 CO T
hide tab bar
show all tabs                                                CS \
----------
enter full screen, exit, toggle                              CL F


VIEW - UTILITIES
  CO 0  toggle utilities
  CO 1  show file inspector
  CO 2  show history inspector
  CO 3  show quick help inspector
        show identity inspector
             dae node inspector
  CO 4  show attributes inspector
  CO 5  show size inspector
  CO 6  show connections inspector
  CO 7  show bindings inspector, cocoa storyboard
             sknode inspector, sprite kit
  CO 8  show view effects inspector, cocoa storyboard

  CLO 1  show file template library
  CLO 2  show code snippet library
  CLO 3  show object library
  CLO 4  show media library
  CS 0   documentation & api reference
  CS 1   welcome to xcode
  CS 2   devices


IOS SIMULATOR
  C 1|2|3|4|5   scale 100/75/50/33/25%
  C left|right  rotate left/right
  CS H          home
  C K           toggle software keyboard
  CS K          connect hardware keyboard
  C S           save screen shot
  C T           slow animations
  CS M          simulate memory warning
  C /           open system log...


INTERFACE BUILDER
  C D       duplicate control
  C =       size to fit content, select control first
  C _       add horizontal guide, drag off top/bottom to remove
  C |       add vertical guide, drag off left/right to remove, pipe char
  C [|]     align left/right edges, select controls first
  C +|-     zoom
  C LRUD    scroll
  LS click  control popup menu


SOURCE CONTROL
  CO C|X  commit.../pull...


FILE MERGE
  C A  select all diffs, then left or right to select entire file rev


OS
  L F2    select menu bar, file, edit, (ctl + fn + F2)
  CS /    help menu (C ?)
  L F3    select dock
  C `     select next window
  CS `    select previous window (C ~)
  CS 3    save screenshot to file
  CS 4    save selected area to file
  CS 5    onscreen capture controls, use to set screenshot size etc, enter or capture to save screenshot to file
  CLS 3   copy screenshot to clipboard
  CLS 4   copy selected area to clipboard
  C ,     preferences...
  CO_     system preferences emoji & symbols
  C L     system preferences show all
  CO F5   accessibility options
  CO =    zoom in (enable zoom in accessibility)
  CO _    zoom out
  CO 8    toggle zoom
  C M     minimize
  C H     hide
  CO H    hide others
  CS G    finder goto folder /etc
  C K     finder connect to server
  O       finder image zoom full size
  T       target disk mode w/thunderbolt cable, hold T on startup
  CO esc  force quit applications
  CL pwr  reboot
  OS K     apple logo char

No comments:

Post a Comment