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