Xcode Keyboard Shortcut Cheatsheet
Jan 24, 2019
Here are list of keyboard shortcut I like to use to keep my hand always on keyboard.
(I use extension GitHub - XVimProject/XVim2: Vim key-bindings for Xcode 9 for vim keybinding on editor, This blog shows some keyboard shortcut I usually use along with that plugin to speedup my workflow.)
::NOTE:: The highlight after the description is the command in key bindings settings. Anything with a highlight description may be the shortcut for my own. You will need to change your configuration if you want to use the same shortcut.
View Layout Navigation Related
List of shortcuts for changing Xcode layouts.
Left Right Panel
<CMD> 0Hide left panel<CMD,OPTION> 0Hide right panel<CMD>1 -9Show left panel and switch to corresponding section<CMD,OPTION> 1-9Show right panel and switch to corresponding section
Debugging
<CMD,SHIFT,Y>Toggle debugging console
Assistant Editor
<OPTION, RIGHT-CLICK-FILE>Open file in assistant editor<OPTION, ENTER>Open file in assistant editor<CMD, ENTER>Dismiss Assistant Editor. ::Standard Editor > Show Standard Editor::
Change Focus
<CMD, SHIFT> CFocus to debugging console<CTRL, BACKQUOTE>Focus back to editor
Quick Navigation
<CMD, SHIFT> OQuick open<CTRL> 6Open object structure list (quick switch to function)<CMD, CTRL> 1Open caller/callee menu ::Standard Editor > Show Related Items::<CMD, CTRL> jJump to definition ::Standard Editor > Jump to Definition::<CTRL> hGo back ::Go Back::<CTRL> lGo forward ::Go Forward::
Refactor
<CTRL, CMD> \Refactor name ::Refactor > Extract Function::
Debugging Related
List of shortcuts you can use when debugging your app.
Debug Console
<CMD,SHIFT,Y>Toggle debugging console<CMD> kClear console
Breakpoint Related
<CMD, CTRL> YPlay/Pause
