
To add a breakpoint move the cursor to the designated line and press Command+Back Slash (⌘\), and to remove it use the same shortcut.To run the product press Command+R (⌘R).To build the product use Command+B (⌘B).To edit the selected scheme use Command+Shift+Comma (⌘⇧,).To clean the build folder press Option+Shift+Command+K (⌥⇧⌘K).Also to fold the whole file's methods and functions use Option+Shift+Command+Left Arrow (⌥⇧⌘←), and to unfold use Option+Shift+Command+Right Arrow (⌥⇧⌘→).
Add key xcodes code#
You can fold a code snippet by placing the cursor in it and press Option+Command+Left Arrow (⌥⌘←), and to unfold it press Option+Command+Right Arrow (⌥⌘→).Also after selecting the code snippet you can move it one tab forward (Shift right) by Command+Ending Square Brackets (⌘]), and you can move it one tab backward (Shift Lift) by Command+Starting Square Brackets (⌘[).To format the code indent you need to select the code first then hit Control+I (⌃I).Use Command+Forward Slash (⌘/) to comment a whole selection, and the same to uncomment the selection.To bring up the code completion you can hit Control+Space (⌃⎵).To resume the preview and see the live updates you can use Option+Command+P (⌥⌘P).There is a new part came exclusively in macOS Catalina 10.15, which is the Canvas (The Preview), in order to show it you need to hit Option+Command+Return (⌥⌘↩︎), and to hide it you can use the same combination you used to bring it or alternatively you can use Command+Return (⌘↩︎).



There are main three shortcuts here to give you more spaces depending on your situation by showing and hiding the main parts of the Xcode UI (Navigator, Debug Area and Inspector), we will see them in details below:
Add key xcodes full#
Fortunately Xcode has a punch of built in Keyboard shortcuts to keep you focused on using the Keyboard, I'll try to mention the most useful ones but you can always review the full list from within Xcode itself by going to Xcode->Preferences->Key Bindings. As a developer, I really don't prefer using trackpad or mouse when I'm in a middle of writing code's lines.
