Xcode Cheatsheet - Essential Shortcuts for Developers

Master Xcode with our comprehensive cheatsheet. Find essential shortcuts for navigation, editing, debugging, and more to boost your iOS and macOS development productivity.

Xcode Cheatsheet

This Xcode cheatsheet provides essential keyboard shortcuts to enhance your productivity when developing applications for Apple platforms like iOS, macOS, watchOS, and tvOS. Mastering these shortcuts can significantly speed up your workflow, from navigating code to debugging and building your projects.

Xcode Navigation Shortcuts

Efficiently move through your project files and code with these navigation shortcuts.

Cmd + Shift + O             Quick Open
Cmd + J                     Focus to Editor
Cmd + Ctrl + UP             Next Counterpart
Cmd + Ctrl + DOWN           Previous Counterpart
Cmd + Ctrl + RIGHT          Next Recent File
Cmd + Ctrl + LEFT           Previous Recent File
Cmd + click                 Definition of Symbol
Cmd + L                     Go to Line
Cmd + Option + LEFT         Fold Section
Cmd + Option + RIGHT        Unfold Section

Xcode Editing Shortcuts

Streamline your code editing process with these powerful shortcuts.

Cmd + Option + ENTER        Show Assistant Editor
Cmd + ENTER                 Hide Assistant Editor
Ctrl + SPACE or ESC         Toggle Completions
Cmd + ]                     Indent Section
Cmd + [                     Outdent Section
Ctrl + i                    Fix Indentation
Cmd + /                     Comment / Uncomment
Cmd + Option + [            Move Line Up
Cmd + Option + ]            Move Line Down

Xcode Search and Find

Quickly locate text and code within your project.

Cmd + F                     Find in File
Cmd + Option + F            Find & Replace in File
Cmd + Shift + F             Find in Project
Cmd + Option + Shift + F    Find & Replace in Project

Xcode Debugging Tools

Debug your applications effectively with these essential commands.

Cmd + Shift + Y             Toggle Debug Area
Cmd + '                     Next Issue
Cmd + "                     Previous Issue
Cmd + \                     Add / Remove Breakpoint
Cmd + Y                     Active / Deactive Breakpoints
Cmd + K                     Clear Console

Xcode Build and Run Commands

Manage the build, run, and test cycles of your projects.

Cmd + B                     Build
Cmd + R                     Run
Cmd + .                     Stop
Cmd + Shift + B             Analyze
Cmd + U                     Test
Cmd + Shift + K             Clean

Xcode Navigator and Utilities

Access and manage Xcode's panels for a better development experience.

##############################################################################
# NAVIGATOR (LEFT PANEL)
##############################################################################
Cmd + 0                     Show /Hide Navigator
Cmd + 1-8                   Switch Navigator tabs
Option + click              Open Assistant Editor
Shift + Option + click      Decide where to Open
double click                Open in New Window

##############################################################################
# UTILITIES (RIGHT PANEL)
##############################################################################
Cmd + Option + 0            Show / Hide Utilities
Cmd + Option + 1-9          Go to Utility Tab

For more in-depth information on Xcode features and documentation, please refer to the official Apple Developer website.

External Resources: