This section lists and describes the keyboard shortcuts that include the ⌘ key:
- Command+Alphanumeric keys
- Command+Navigation keys
- Command+Symbol keys
- Command+Numpad keys
- Command+Function (F) keys
Command+Alphanumeric keys
| Shortcut | Function | Use this shortcut to... |
|---|---|---|
| ⌘A or ⌘A⌘A or ⌘A⌘A or ⌘A^ A, ⌃A or ⌃A^ X, H, ⌃X, H or ⌃X, H | Select All | Select the entire text in the active editor. |
| ⌘B, ⌘Button1 Click, Button2 Click, ⌘B, ⌘Button1 Click or Button2 Click⌘B, ⌘Button1 Click, Button2 Click, ⌘B, ⌘Button1 Click or Button2 ClickF3, ⌃Button1 Click, F3 or ⌃Button1 ClickF12, ⇧ F2, ^ B, ^ Button1 Click, Button2 Click, F12, ⇧F2, ⌃B, ⌃Button1 Click, Button2 Click, F12, ⇧F2, ⌃B, ⌃Button1 Click or Button2 Click^ ⌥ G, Escape, Period, ⌥ Period, ^ Button1 Click, ⌃⌥G, ⎋, ., ⌥., ⌃Button1 Click, ⌃⌥G, ⎋, ., ⌥. or ⌃Button1 Click | Navigate to Declaration | Navigate directly to an element's declaration from any usage. |
| ⌘C or ⌘C⌘C or ⌘C⌘C or ⌘C^ C, ^ Insert, ⌃C or ⌃C^ Insert, ⌥ C, Escape, W, ⌥C, ⎋, W, ⌥C or ⎋, W | Copy | Copy selected text to the Clipboard. |
| ⌘D or ⌘D⌘D or ⌘D^ D, ⌃D or ⌃D⌘ D, ⌘D or ⌘D | Duplicate Line or Block | Duplicate selected block or line at caret. |
| ⌘E or ⌘E⌘E or ⌘E⌘E or ⌘E^ E, ⌃E or ⌃E | Recent Files Recent find usages |
Show the list of recently opened files.
When the Find tool window has the focus, use this shortcut to show the list of recent find usages results. |
| ⌘F or ⌘F⌘F, ⌥F3, ⌘F or ⌥F3^ F, ⌥ F3, ⌃F, ⌥F3, ⌃F or ⌥F3^ ⌥ S, ⌥ F3, ^ S, ⌃⌥S, ⌥F3, ⌃S, ⌃⌥S, ⌥F3 or ⌃S | Find | Initiate text search in the editor. |
| ⌘L or ⌘L⌘G or ⌘G⌘L or ⌘L^ G, ⌃G or ⌃G⌥ G, ⌥G or ⌥G | Navigate to Line | Navigate the to a line with the specified number in the current file. |
| ⌃H or ⌃H⌃H or ⌃HF4 or F4⌥ H, ⌥H or ⌥H^ H, ⌃H or ⌃H | Type Hierarchy | Browse hierarchy for the selected class. |
| ⌃I or ⌃I⌘I or ⌘I^ ⇧ I, ⌃⇧I or ⌃⇧I^ I, ⌃I or ⌃I | Implement Methods | Implement methods of the base interface/class in the current class. |
| ⌘J or ⌘J⌘J or ⌘J^ J, ⌃J or ⌃J^ J, ⌃J or ⌃J | Insert Live Template | Show a pop-up list of Live Templates starting with a specified prefix. |
| ^ M, ⌃M or ⌃M^ L, ⌃L or ⌃L | Scroll to Center | Scroll a line at caret to the center of the screen. |
| ⌘O or ⌘O⌘N or ⌘N⇧⌘T or ⇧⌘T^ Comma, ⌃, or ⌃,⇧ ⌥ G, ⌥⇧G or ⌥⇧G | Navigate to Class | Jump to a class in the project with the specified name. |
| ⌃O or ⌃O⌘O or ⌘O^ ⇧ O, ⌃⇧O or ⌃⇧O | Override Methods | Override base class methods in the current class. |
| ⌘P or ⌘P⌘P or ⌘P⌘P or ⌘P^ P, ⌃P or ⌃P^ P, ⌃P or ⌃P | Parameter Info | Show parameters of the method call at the caret. |
|
F1, ⌃J, ⌃Button2 Click, F1, ⌃J or ⌃Button2 Click⌃J, ⌃Button2 Click, ⌃J or ⌃Button2 Click⌥Button2 Click, F2, ⌥Button2 Click or F2^ Q, ⌃Q or ⌃Q^ Q, ⌥ Button2 Click, ⌃Q, ⌥Button2 Click, ⌃Q or ⌥Button2 Click
⌥ Mouse Button2 | Quick documentation | Show a pop-up window with documentation for the symbol at the caret. |
| F1, ⌃J, ⌃Button2 Click, F1, ⌃J or ⌃Button2 Click⌃J, ⌃Button2 Click, ⌃J or ⌃Button2 Click⌥Button2 Click, F2, ⌥Button2 Click or F2^ Q, ⌃Q or ⌃Q^ Q, ⌥ Button2 Click, ⌃Q, ⌥Button2 Click, ⌃Q or ⌥Button2 Click | Show Table Data |
In the Database tool window:
show a pop-up window that displays the create table query
for the database table at the caret and the first 10 rows of the table.
|
| ⌘R or ⌘R⌘R or ⌘R^ H, ⌃H or ⌃H⇧ ⌥ 5, ⌥⇧5 or ⌥⇧5 | Replace | Call the Replace Text dialog box. |
| ⌘S or ⌘S⌘S or ⌘S⌘S or ⌘S^ S, ⌃S or ⌃S^ X, Ctrl S, ⌃X, ⌃S or ⌃X, ⌃S | Save All | Save all files and settings. |
| ⌘U or ⌘U⌘U or ⌘U^ U, ⌃U or ⌃U^ U, ⌃U or ⌃U | Navigate to Super Method | Navigate to a super method declaration of a method at caret |
| ⌘V or ⌘V⌘V or ⌘V⌘V or ⌘V^ V, ⇧ Insert, ⌃V or ⌃V⌥ P, ⇧ Insert, ^ Y, ⌥P, ⌃Y, ⌥P or ⌃Y | Paste | Paste from the Clipboard. |
| ⌥↑ or ⌥↑⌘W or ⌘W⌃⇧↑ or ⌃⇧↑^ W, ⌃W or ⌃W^ ⌥ W, ⌃⌥W or ⌃⌥W | Select Word at Caret | Successively select expanding blocks of text, starting from the word at caret. (Use this shortcut repeatedly to select expressions.) |
| ⌘X, ⇧⌦, ⌘X or ⇧⌦⌘X, ⇧⌦, ⌘X or ⇧⌦⌘X, ⇧⌦, ⌘X or ⇧⌦^ X, ⇧ Delete, ⌃X, ⇧⌦, ⌃X or ⇧⌦⇧ Delete, ⌥ X, ⇧⌦, ⌥X, ⇧⌦ or ⌥X | Cut | Cut to the Clipboard. |
| ⌘⌫ or ⌘⌫⌘Y or ⌘Y⌘D or ⌘D^ ⇧ L, ⌃⇧L or ⌃⇧L | Delete Line at Caret | Delete a word starting from the current caret location up to the end of word. |
| ⌘Z or ⌘Z⌘Z or ⌘Z⌘Z or ⌘Z^ Z, ⌃Z or ⌃Z^ ⇧ Minus, ^ Slash, ⌃⇧-, ⌃/, ⌃⇧- or ⌃/ | Undo | Undo last operation. |
| ⇧⌘Z, ⌥⇧⌫, ⇧⌘Z or ⌥⇧⌫⇧⌘Z, ⌥⇧⌫, ⇧⌘Z or ⌥⇧⌫⇧⌘Z or ⇧⌘Z^ Y, ^ ⇧ Z, ⌃Y, ⌃⇧Z, ⌃Y or ⌃⇧Z^ ⇧ Z, ⇧ ⌥ Minus, ⌃⇧Z, ⌥⇧-, ⌃⇧Z or ⌥⇧- | Redo | Redo last undone operation. |
| ⌘ Number | Navigate to bookmark | Navigate to a numbered bookmark with corresponding number. |
Command+Navigation keys
| Shortcut | Function | Use this shortcut to... |
|---|---|---|
| ⌃⇥, ⌃⇧⇥, ⌃⇥ or ⌃⇧⇥⌃⇥, ⌃⇧⇥, ⌃⇥ or ⌃⇧⇥⌃⇥, ⌃⇧⇥, ⌃⇥ or ⌃⇧⇥^ Tab, ^ ⇧ Tab, ⌃⇥, ⌃⇧⇥, ⌃⇥ or ⌃⇧⇥^ X, B, ⌃X, B or ⌃X, B | Switcher | Navigate between the files opened in the editor, and tool windows. |
| ⌥⌫ or ⌥⌫⌥⌫ or ⌥⌫⌘⌫ or ⌘⌫^ Backspace, ⌃⌫ or ⌃⌫^ Backspace, ⌥ Backspace, Escape, Backspace, ⌃⌫, ⌥⌫, ⎋, ⌫, ⌃⌫, ⌥⌫ or ⎋, ⌫ | Delete to Word Start | Delete a word starting from the current caret location up to the word start. |
| ⌥⌦ or ⌥⌦⌥⌦ or ⌥⌦⌘⌦ or ⌘⌦^ Delete, ⌃⌦ or ⌃⌦^ Delete, ⌃⌦ or ⌃⌦ | Delete to Word End | Delete a word starting from the current caret location up to the word end. |
| ⌘↘ or ⌘↘⌘↘ or ⌘↘⌘↘ or ⌘↘^ End, ⌃↘ or ⌃↘^ End, ⇧ ⌥ Period, ⌃↘, ⌥⇧., ⌃↘ or ⌥⇧. | Move to Text End | Move the caret to the end of text. |
| ⌘⏎ or ⌘⏎⌘⏎ or ⌘⏎⌘⏎ or ⌘⏎^ Enter, ⌃⏎ or ⌃⏎^ Enter, ⌃⏎ or ⌃⏎ | Split Line or Open Item |
Depending on the context:
|
| ⌘↖ or ⌘↖⌘↖ or ⌘↖⌘↖ or ⌘↖^ Home, ⌃↖ or ⌃↖^ Home, ⇧ ⌥ Comma, Escape, Comma, ⌃↖, ⌥⇧,, ⎋, ,, ⌃↖, ⌥⇧, or ⎋, , | Move to Text Start | Jump to the beginning of the text. |
| ⌘C or ⌘C⌘C or ⌘C⌘C or ⌘C^ C, ^ Insert, ⌃C or ⌃C^ Insert, ⌥ C, Escape, W, ⌥C, ⎋, W, ⌥C or ⎋, W | Copy | Copy a current line or a selected code block to the Clipboard. |
| ⌃Space or ⌃Space⌃Space or ⌃Space⌃Space or ⌃Space^ Space, ⌃Space or ⌃Space⌥ Slash, ⌥/ or ⌥/ | Basic Code Completion | Complete code for any class, method or variable. |
| ⌘⇟ or ⌘⇟⌘⇟ or ⌘⇟^ Page Down, ⌃⇟ or ⌃⇟^ Page Down, ⌃⇟ or ⌃⇟ | Navigate to Page Bottom | Move the caret down to the page bottom. |
| ⌘⇞ or ⌘⇞⌘⇞ or ⌘⇞^ Page Up, ⌃⇞ or ⌃⇞^ Page Up, ⌃⇞ or ⌃⇞ | Navigate to Page Top | Move the caret up to the page top. |
| ⌘↓ or ⌘↓^ Down, ⌃↓ or ⌃↓ | Scroll Down | Move line at caret one down, preserving syntactical correctness. |
| ⌥← or ⌥←⌥← or ⌥←⌥← or ⌥←^ Left, ⌃← or ⌃←^ Left, ⌥ B, Escape, Ctrl B, ⌃←, ⌥B, ⎋, ⌃B, ⌃←, ⌥B or ⎋, ⌃B | Move to Previous Word | Move the caret to the previous word. |
| ⌥→ or ⌥→⌥→ or ⌥→⌥→ or ⌥→^ Right, ⌃→ or ⌃→^ Right, ⌥ F, Escape, Ctrl F, ⌃→, ⌥F, ⎋, ⌃F, ⌃→, ⌥F or ⎋, ⌃F | Move to Next Word | Move the caret to the next word. |
|
⌘↑ or ⌘↑^ Up, ⌃↑ or ⌃↑
⇧⌘↑ or ⇧⌘↑⇧⌘↑ or ⇧⌘↑⌥↑ or ⌥↑^ ⇧ Up, ⌃⇧↑ or ⌃⇧↑^ ⇧ Up, ⌃⇧↑ or ⌃⇧↑ | Scroll Up | Move line at caret one up, preserving syntactical correctness. |
Command+Symbol keys
| Shortcut | Function | Use this shortcut to... |
|---|---|---|
| ⌥⌘[ or ⌥⌘[⌘[ or ⌘[⌥⌘[ or ⌥⌘[^ Open Bracket, ⌃[ or ⌃[^ Open Bracket, ^ ⌥ Open Bracket, ⌃[, ⌃⌥[, ⌃[ or ⌃⌥[ | Move to Code Block Start | Move the caret to the beginning of the current code block, highlighting its limits. |
| ⌥⌘] or ⌥⌘]⌘] or ⌘]⌃], ⌃⇧P, ⌃] or ⌃⇧P^ Close Bracket, ^ Asterisk, ⌃], ⌃*, ⌃] or ⌃*^ Close Bracket, ^ ⌥ Close Bracket, ⌃], ⌃⌥], ⌃] or ⌃⌥] | Move to Code Block End | Move the caret to the end of the current code block, highlighting its limits. |
|
⌘/, ⌘NumPad /, ⌘/ or ⌘NumPad /⌘/, ⌘NumPad /, ⌘/ or ⌘NumPad /⌘/, ⌘NumPad /, ⌘/ or ⌘NumPad /^ Slash, ^ NumPad /, ^ Colon, ⌃/, ⌃NumPad /, ⌃:, ⌃/, ⌃NumPad / or ⌃:⌥ Semicolon, ⌥; or ⌥;
⌘ Numpad/ | Comment with Line Comment | Comment/uncomment current line or selected block with line comments. |
|
⌘ =
⌘ , ⌘=, ⌘ or ⌘=⌘ , ⌘=, ⌘ or ⌘=⌘ , ⌘=, ⌘ or ⌘=^ NumPad Plus, ^ Equals, ⌃ , ⌃=, ⌃ or ⌃=^ NumPad Plus, ^ Equals, ⌃ , ⌃=, ⌃ or ⌃= | Expand All | Expand all folding blocks. |
| ⌘- or ⌘-⌘- or ⌘-⌘- or ⌘-^ NumPad -, ^ Minus, ⌃- or ⌃-^ NumPad -, ^ Minus, ⌃- or ⌃- | Collapse All | Collapse all folding blocks. |
Command+Numpad keys
| Shortcut | Function | Use this shortcut to... |
|---|---|---|
|
⌘ Numpad/
⌘/, ⌘NumPad /, ⌘/ or ⌘NumPad /⌘/, ⌘NumPad /, ⌘/ or ⌘NumPad /⌘/, ⌘NumPad /, ⌘/ or ⌘NumPad /^ Slash, ^ NumPad /, ^ Colon, ⌃/, ⌃NumPad /, ⌃:, ⌃/, ⌃NumPad / or ⌃:⌥ Semicolon, ⌥; or ⌥; | Comment with Line Comment | Comment/uncomment current line or selected block with line comments. |
|
⌘ , ⌘=, ⌘ or ⌘=⌘ , ⌘=, ⌘ or ⌘=⌘ , ⌘=, ⌘ or ⌘=^ NumPad Plus, ^ Equals, ⌃ , ⌃=, ⌃ or ⌃=^ NumPad Plus, ^ Equals, ⌃ , ⌃=, ⌃ or ⌃=
⌘ = | Expand All | Expand all folding blocks. |
| ⌘- or ⌘-⌘- or ⌘-⌘- or ⌘-^ NumPad -, ^ Minus, ⌃- or ⌃-^ NumPad -, ^ Minus, ⌃- or ⌃- | Collapse All | Collapse all folding blocks. |
Command+Function (F) keys
| Shortcut | Function | Use this shortcut to... |
|---|---|---|
| ⌘F1 or ⌘F1⌘F1 or ⌘F1⌘F1 or ⌘F1^ F1, ⌥ T, ⌃F1, ⌥T, ⌃F1 or ⌥T^ F1, ⌃F1 or ⌃F1 | Error Description | Show an error or warning description at the caret. |
| ⌘F3 or ⌘F3^ F3, ⌃F3 or ⌃F3^ F3, ⌃F3 or ⌃F3 | Find Word at Caret | Search in the editor for the word where the caret is currently located. |
| ⌘F6 or ⌘F6⌘F6 or ⌘F6⌥⌘C or ⌥⌘C^ F6, ⌃F6 or ⌃F6^ F6, ⌃F6 or ⌃F6 | Change Method Signature | Refactor a selected method signature and update all references. |
| ⌘F7 or ⌘F7⌘F7 or ⌘F7⇧⌘U or ⇧⌘U^ ⇧ F7, ⇧ F12, ⌃⇧F7, ⇧F12, ⌃⇧F7 or ⇧F12^ F7, ⌃F7 or ⌃F7 | Find Usages in File | Initiate search for usages. |
| ⌘F8 or ⌘F8⌘F8 or ⌘F8⇧⌘B or ⇧⌘BF9, F9 or F9^ F8, ⌃F8 or ⌃F8 | Toggle Breakpoint | Toggle breakpoint at caret. |
| ⌘F9 or ⌘F9⌘F9 or ⌘F9⌘B or ⌘BF7, F7 or F7^ F9, ⌃F9 or ⌃F9 | Make Project | Compile all modified and dependent files in a project. |
| ⌥F3 or ⌥F3⌘F11 or ⌘F11⌥F3 or ⌥F3^ F11, ⌃F11 or ⌃F11^ F11, ⌃F11 or ⌃F11 | Toggle Bookmark with mnemonic. | Turn bookmark with mnemonic on or off. |
| ⌘F12 or ⌘F12⌘F12 or ⌘F12⌘O or ⌘O^ F12, ⌃F12 or ⌃F12^ F12, ⌃F12 or ⌃F12 | File Structure Pop-up | Show the current file structure in the File Structure pop-up window for quick navigation. |