⌘
+0
Show or hide Navigator⌘
+⌥
+0
Show or hide Inspector⌘
+1
-9
Show and switch Navigator tabs⌘
+⌥
+1
-4
Show and switch Inspector tabs⌘
+⇧
+Y
Open or hide the Console
⌘
+⌥
+J
Filter in current Navigator Tab
-
⌘
+⇧
+O
Open Quickly- Supports fuzzy search. Ex.: Type
PrCVC
to find ProductCollectionViewCell - Supports opening the file in a specific line. Ex.:
ViewController.swift:58
- Supports fuzzy search. Ex.: Type
-
⌥
+⇧
Choose where to open a file (either from Open Quickly, or when clicking in the Project Navigator) -
⌘
+⇧
+J
Reveal file in Project Navigator
⌘
+J
Move focus of current editor⌘
+⇧
+D
in the UI Hierarchy Debugger
⌘
+↑
or↓
Move to end/beginning of a file. Combine with⇧
to select text.⌘
+→
or←
Move to end/beginning of a line. Combine with⇧
to select text.⌥
+→
or←
Move to end/beginning of a word. Combine with⇧
to select text.⌘
+⌃
+⇧
+→
or←
Camel case sensitive text selection
⌘
+L
jump to a specific line⌘
+⇧
+L
Show Library (Code Snippets or Interface Builder views)
- In the Jump bar: You can filter files or function by typing
⌘
+↑
+⌃
Show generated Swift interface (Only properties and method declarations)⌥
+ drag cursor up/down: multiple cursors⌃
+I
to automatically indent them⌘
+⌥
+[
or]
Move a line upwards/downwards⌘
+⌥
+←
or→
Fold/Unfold (see more variants in Editor > Code Folding)⌘
++
or-
Increase/Decrease font size⌘
+⌃
+E
Edit All in Scope
⌘
+⇧
+K
Clean build folder⌘
+K
Clean console (also works on Safari's inspector)
⌘
+⇧
+F
Search in Workspace/Project (Same as⌘
+4
)⌘
+F
Search in current file- Select code, then
⌘
+E
to open the search box with the selection ⌘
+G
goes to the next occurrence;⌘
+⇧
+G
to the previous
⌥
+ click on a type to show popover documentation
↵
on a file to rename;space
to show Quick Look- Install quicklook plugins/extensions
- Folders in Xcode or Finder (or any other native mac app using
NSOutlineView
): Click the arrow +⌥
to recursively collapse or expand nested folders
- Copy file as path
- Use aliases to ease running frequent and/or long commands
xed .
- opens a Workspace (or a Project if a workspace doesn't exists) in the existing directory
- Imagine Terminal and Spotlight had a baby
- Run custom scripts:
- Clear derived data
- Convert pasteboard (ex.: HEX to RGB)
- Open commonly used directories
- Community based repo for scripts
- Clipboard History: Never be afraid of copying something and losing a copied content
- Sequential Paste
- Filters: transform clipboard data
⌘
Command⇧
Shift⌥
Option (or Alt)⌃
Control (or Ctrl)←
Left Arrow→
Right Arrow↑
Up Arrow↓
Down Arrow↵
Enter/return