Awesome Xcode shortcuts to boost your iOS development
Learn shortcuts, Improve workflow, Be faster
Learning Xcode keyboard shortcuts will improve your workflow, productivity and make you a faster iOS or Mac app developer. There are many keyboard shortcuts in Xcode that can make yourself a more efficient programmer. I’ve put together a cheat sheet for a number of frequently used keyboard shortcuts in Xcode 10.
Keys
- ⌘ - Command
- ⇧ - Shift
- ⌥ - Option/Alt
- ⌃ - Control
- ⇠⇢ - Left/Right Arrow Keys
- ⇡⇣ - Up/Down Arrow Keys
- ⏎ - Return
- ⇥ - Tab
- ⎋ - Escape
Workspace Organization
1. Hide / Show Navigation Area : ⌘+0
2. Hide/Show Debugging Area : ⌘+⇧+Y
3. Hide/Show Utility Area : ⌘+⌥+ 0
4. Split screen/open Assistant Editor in the Editor Area : ⌘ +⌥ + ⏎
5. Opens a new tab above the navigator, editor & utility areas : ⌘ + T
6. Close the current tab : ⌘ + W
Code Formatting & Beautification
1. Confirms the auto-completion suggestion : ⇥ OR ⌃ + /
2. Comment or Uncomment : ⌘ + /
3. Re-indent the whole function: ⌃ + I
4. Hides / expands a class or method body :⌥+⌘+⇢ OR ⌥+⌘+⇠
5. Auto documentation : ⌘ +⌥ + /
Debugging
1. Add and Remove breakpoints : ⌘ + \
2. Disable/Enable all breakpoints : ⌘ + Y
Building
- Build : ⌘ + B
- Run & Build if necessary :⌘ + R
- Stop the current build/run/testing : ⌘ + .
- Run tests & Build if necessary: ⌘ + U
- Clean : ⌘ + K
- Clean All files and build folder : ⇧ + ⌘ + K
- Profile (Instruments): ⌘ + I
- Choose scheme : ⌃ + 0
- Choose Destination : ⌃ + ⇧ + 0
- Re-run the last run tests : ⇧ + ⌘ + ⌥ + G
Navigation And Information
1. Jump to a line : ⌘ + L
2. Left panel tabs switch : ⌘ + (1–7)
3. Right panel tabs switch :⌘ +⌥ + 1-6
4. Search for lines of text in your files : ⌘+⇧+F
5. Quick find/open : ⇧ + ⌘ + O
Simulator
- Copy current screen : ⌃ + ⌘+ C
- Take Screenshot : ⌘ + S
- Go to Home :⇧+ ⌘ + H
- Shake Gesture : ⌃ + ⌘+ Z
- Toggle software keyboard : ⌘ + K
Walking on water and developing software from a specification are easy if both are frozen.
— Edward V Berard
Find it a good read?
Recommend this post (by clicking 👏 button) so other people can see it too…
reach me on Twitter Balaji Malliswamy