Member-only story
Top Xcode Shortcuts
1 min readMay 2, 2021
Learning to maximize the tools you have at your disposal is crucial to advancing to the next level. A combination of keys can save you seconds. The shortcuts menu in Xcode can be found in Xcode -> Preferences (or cmd,) -> Key Bindings. Here, you can adjust existing shortcuts and even create your own. Here is a list of the top shortcuts I use that speed up my coding process exponentially.
- ⌘R (cmd R) — used to run your project in simulator
- ⌘⇧K (cmd shift K) — used to clear the build folder
- ⌘Z (cmd Z) — Undo
- ⌘⇧Z (cmd shift Z) — redo
- ⌥⌘[ (option cmd leftBracket) — used to move selected code one line down
- ⌥⌘] (option cmd rightBracket) — used to move selected code one line up
- ⌥← (option left arrow) — used to move one word left
- ⌥→ (option right arrow) — used to move one word right
- ⇧⌘L (shift cmd L) — used to open object library in storyboard
- ⌘A (cmd A) — used to select all
- ⌃I (ctrl I) — used to re-indent selected code
- ⇧⌘↩ (shift cmd enter) — run the playground