Xcode HotKey Cheatsheet

Xcode is a powerful integrated development environment (IDE) launched by Apple, specially designed for macOS and used to develop iOS, macOS, watchOS and tvOS applications. It integrates code editors, debuggers, interface building tools and performance analysis tools to provide developers with a one-stop development experience.

During the development process, using shortcut keys can help developers quickly complete common tasks, such as editing code, navigating projects, running debuggers, etc., which not only saves time, but also improves development efficiency. Whether you are a novice or an experienced developer, mastering Xcode shortcuts can significantly improve the smoothness of your workflow.

Xcode MacOS shortcut keys

Editor menu

Shortcut keysFunction description
+ + IOutline
Function 6Step
+ + + Collapse comment block
+ \Add a breakpoint on the current line
+ + + → ArrowExpand comment block
+ RRun
+ +Enlarge text
+ + + → ArrowExpand methods and functions
+ /Comment selection
Reduce text
+ + BAnalysis
+ + + KClean build folder...
+ IOutline
+ + Previous Page
+ + IBuilt for analysis
+ |Add vertical guides
+ [Left edge alignment
+ + Kclean
+ YActivate breakpoint, deactivate breakpoint
+ =Fit to size
+ Less ThanEditing scheme…
+ + [Move up the queue
+ _Add horizontal guides
+ + INo building outline
+ + Function 6Across threads
+ + RNo need to build to run
+ + + BAnalysis
+ + MShow all questions
+ .Stop
+ ]Shift right
+ + Function 7Step into teaching
+ + RAdd relationship
Function 8Go out
+ + UTest without building
+ + Next page
+ [Shift left
+ + RRun
+ + AAdd attribute
+ \Show completion status
+ + TTest
+ + UBuilt for testing
+ + RBorn to run
+ + + OOverwrite mode
+ + YPause
+ + + Folding methods and functions
+ TTest
+ + FFix all problems in scope
+ + ]Move down one line
+ Function 6Step command
+ + Function 7Enter thread
+ KClear console
+ BBuild
Function 7Step into
+ + Fold
+ + → ArrowExpand
+ + EAll content within the editing range
+ ]Right edge alignment

File menu

Shortcut keysFunction description
+ + SSave as...
+ + WClose document
+ TNew tab
+ + SSave all
+ + NNew item…
+ + WClose all windows
+ + + SSave multiple...
+ NNew file…
+ + + XUpdate all
+ + OQuickly open...
+ + + WClose other tabs
+ SSave
+ + XUpdate…
+ + WClose tag
+ + SCreate snapshot...
+ + AAdd file...
+ + PPage setup…
+ OOpen…
+ + NNew workspace
+ WClose window
+ + TNew Windows
+ + NNew Group
+ + CCrime…
+ PPrint…

View menu

Shortcut keysFunction description
+ 2Show previous history
+ 5Show group files
+ 4Show top-level items
+ + + WRemove assistant editor
+ Standard
+ + + ZReset editor
+ 4Question
+ 7Display problem
+ + YShow debugging area
+ + Assistant
+ 1Show related products
+ + 2Show previous file history
+ 6Show document items
+ 3Search
+ 7Log
+ 6Breakpoint
+ 2Symbol
+ 1Project
+ 3Show next history record
+ 0Show navigator
+ + 3Show next file history
+ 5Debugging
+ + + Version

Navigation menu

Shortcut keysFunction description
+ + → ArrowForward
+ ?Jump to previous placeholder
+ <Open in adjacent editor
+ + Jump to corresponding party
+ + + Return in alternate editor
+ JJump to selection
+ + DJump to definition
+ + JSkip to...
+ + + KMove focus to the previous area
+ + KMove focus to next area
+ + Go back
+ ''Skip to next issue
+ "Jump to the previous issue
+ /Jump to next placeholder
+ LShow in project navigator
+ + + → ArrowForward in alternate editor
+ + `''Jump to next problem and fix it
+ + "Jump to and fix the previous problem

Edit menu

Shortcut keysFunction description
+ + EReplace using selection
+ + + VPaste and match styles
+ ASelect all
+ + ZRedo
+ + + TDisplay font
+ ZUndo
+ GFind the next one
+ + VPaste Special
+ CCopy
+ + + FFind and replace in the workspace...
+ EFind using selection
+ + FFind and Replace…
+ + FFind in workspace...
+ + GFind the previous one
+ XCut
+ + LFilter in library
+ DCopy
+ FFind...
+ :Show spelling and grammar
+ + JFilters in the Navigator
+ VPaste

Help menu

Shortcut keysFunction description
+ + + /Search documents for selected text
+ + ?Quick help
+ + ?Developer Documentation

Window menu

Shortcut keysFunction description
+ MMinimize
+ + 2Organizer
+ {Select previous tab
+ + 1Welcome to Xcode
+ }Select next label

Xcode Menu

Shortcut keysFunction description
+ ,Priority...
+ + HHide others
+ HHide Xcode
+ QExit Xcode

Download Xcode MacOS Shortcut Keys Cheatsheet PDF

We provide a Xcode MacOS shortcut keys PDF download feature. Click the download button to get the file. Please note that generating the PDF may take some time, so please be patient. Download

Xcode official website information

If you want to get the latest Xcode version or learn related content, you can visit the following links:

Apple's official website provides a wealth of documentation resources and tutorials to help developers understand the use of Xcode more deeply.

Xcode shortcut key FAQ

The following lists the common questions and answers about Xcode shortcut keys:

  1. How ​​to customize Xcode shortcut keys?
    Select Preferences > Key Bindings in the Xcode menu to view and edit shortcut key configurations.

  2. How ​​do I reset the shortcut settings?
    After entering the Key Bindings page, click the Restore Defaults button to restore the shortcuts to the default settings.

  3. What programming languages ​​does Xcode support?
    Supports Swift, Objective-C, C, C++, and other LLVM-based languages.

  4. How ​​do I solve the problem of invalid shortcuts?
    Check whether there is a conflict with the macOS system shortcuts and adjust them in System Preferences > Keyboard.

  5. How ​​do I quickly locate files using shortcuts?
    Use Cmd + Shift + O to open the symbol quick search window to quickly find files and classes.

  6. What should I do if the debugging shortcuts do not work?
    Make sure the project has been built correctly and is in debug mode, and check whether the shortcuts are disabled.

  7. How ​​do I share custom shortcut configurations?
    Export the Preferences configuration file and share it with other developers.

  8. What should I do if the shortcut keys of the new version of Xcode have changed?
    Check the official documentation to get the shortcut key list of the new version, and adjust your work habits in time.

Summary

Xcode is the core tool for Apple developers. Its shortcut key functions cover file management, code editing, navigation, running and debugging, etc. By using these shortcut keys reasonably, you can significantly improve development efficiency and reduce the time wasted on manual operations. It is recommended that developers gradually develop the habit of shortcut key operation in daily use and become masters of efficient development in Xcode.

5/5 - (1 vote)