This section lists and describes the keyboard shortcuts that include the ⌥ ⌘ keys:
Command+Alt+Alphanumeric keys
| Shortcut | Function | Use this shortcut to... |
|---|---|---|
| ⌥⌘B, ⌥⌘Button1 Click, ⌥⌘B or ⌥⌘Button1 Click⌥⌘B, ⌥⌘Button1 Click, ⌥⌘B or ⌥⌘Button1 Click^ ⌥ B, ^ ⌥ Button1 Click, ⌃⌥B, ⌃⌥Button1 Click, ⌃⌥B or ⌃⌥Button1 Click | Navigate to Implementation | Navigate to implementation of an item at the caret. |
| ⌥⌘C or ⌥⌘C⌥⌘C or ⌥⌘C^ ⌥ C, ⌃⌥C or ⌃⌥C^ ⌥ C, ⌃⌥C or ⌃⌥C | Extract Constant | Replace selected expression with a constant (static final field) (Refactoring). |
| ⌥⌘F or ⌥⌘F⌥⌘F or ⌥⌘F⌥⌘F or ⌥⌘F^ ⌥ F, ⌃⌥F or ⌃⌥F | Extract Field | Put a selected expression result into a field (Refactoring). |
| ⌥⌘G or ⌥⌘G⌥⌘G or ⌥⌘G⌥⌘G or ⌥⌘G^ ⌥ G, ⌃⌥G or ⌃⌥G^ ⌥ G, ⌃⌥G or ⌃⌥G | Run Grails target | Execute Grails target with the specified target name. |
| ⌃⌥H or ⌃⌥H⌃⌥H or ⌃⌥H⌃⌥H or ⌃⌥H^ ⌥ H, ⌃⌥H or ⌃⌥H^ ⌥ H, ⌃⌥H or ⌃⌥H | Call Hierarchy | Browse call hierarchy for the selected method. |
| ⌃⌥I or ⌃⌥I⌥⌘I or ⌥⌘I⌘I or ⌘I^ ⌥ I, ⌃⌥I or ⌃⌥I^ ⌥ I, ^ ⌥ Q, ⌃⌥I, ⌃⌥Q, ⌃⌥I or ⌃⌥Q | Auto-indent Lines | Indent current line or selected block according to the Code Style Settings. |
| ⌥⌘J or ⌥⌘J⌥⌘J or ⌥⌘J⌥⌘J or ⌥⌘J^ ⌥ J, ⌃⌥J or ⌃⌥J^ ⌥ J, ⌃⌥J or ⌃⌥J | Surround with Live Template | Surround the selection with one of the Live Templates. |
| ⌥⌘M or ⌥⌘M⌥⌘M or ⌥⌘M⌥⌘M or ⌥⌘M^ ⌥ M, ⌃⌥M or ⌃⌥M^ ⌥ M, ⌃⌥M or ⌃⌥M | Extract Method | Create a method from the selected code (Refactoring). |
| ⌥⌘N or ⌥⌘N⌥⌘N or ⌥⌘N⌥⌘I or ⌥⌘I^ ⌥ N, ⌃⌥N or ⌃⌥N^ ⌥ N, ⌃⌥N or ⌃⌥N | Inline | Inline a selected method/variable (Refactoring). |
| ⌥⌘P or ⌥⌘P⌥⌘P or ⌥⌘P⌥⌘P or ⌥⌘P^ ⌥ P, ⌃⌥P or ⌃⌥P^ ⌥ P, ⌃⌥P or ⌃⌥P | Extract Parameter | Turn a selected expression into a method parameter (Refactoring). |
| ⌥⌘T or ⌥⌘T⌥⌘T or ⌥⌘T⌥⌘Z or ⌥⌘Z^ ⌥ T, ⌃⌥T or ⌃⌥T^ ⌥ T, ⌃⌥T or ⌃⌥T | Surround with | Surround selected code fragment with if, while, try/catch, or another construct. |
| ⌥⌘V or ⌥⌘V⌥⌘V or ⌥⌘V⌥⌘L or ⌥⌘L^ ⌥ V, ⌃⌥V or ⌃⌥V^ ⌥ V, ⌃⌥V or ⌃⌥V | Extract Variable | Put selected expression result into a variable (Refactoring). |
| ⌥⌘Y or ⌥⌘Y⌥⌘Y or ⌥⌘Y^ ⌥ Y, ⌃⌥Y or ⌃⌥Y^ ⌥ Y, ⌃⌥Y or ⌃⌥Y | Synchronize | Detect all externally changed files and reload them from disk. |
Command+Alt+Navigation keys
| Shortcut | Function | Use this shortcut to... |
|---|---|---|
| ⌥⌘⏎ or ⌥⌘⏎⌥⌘⏎ or ⌥⌘⏎⌥⌘⏎ or ⌥⌘⏎^ ⌥ Enter, ⌃⌥⏎ or ⌃⌥⏎^ ⌥ Enter, ⌃⌥⏎ or ⌃⌥⏎ | Start new line before current one | Start a new line before the current one. |
|
⌥⌘↓ or ⌥⌘↓⌥⌘↓ or ⌥⌘↓^ ⌥ Down, ⌃⌥↓ or ⌃⌥↓^ ⌥ Down, ⌃⌥↓ or ⌃⌥↓
⌥⌘↑ or ⌥⌘↑⌥⌘↑ or ⌥⌘↑^ ⌥ Up, ⌃⌥↑ or ⌃⌥↑^ ⌥ Up, ⌃⌥↑ or ⌃⌥↑ | Navigate to Next/Previous Occurrence | Navigate to a next found item . |
| ⌘[, ⌥⌘←, Button4 Click, ⌘[, ⌥⌘← or Button4 Click⌥⌘←, Button4 Click, ⌥⌘← or Button4 Click⌘[, Button4 Click, ⌘[ or Button4 Click^ ⌥ Left, Button4 Click, ⌃⌥←, Button4 Click, ⌃⌥← or Button4 Click^ ⌥ Left, Button4 Click, ⌃⌥←, Button4 Click, ⌃⌥← or Button4 Click | Back |
Undo last navigation operation.
On an OS X computer, you can also use the three-finger right-to-left swipe gesture. |
| ⌘], ⌥⌘→, Button5 Click, ⌘], ⌥⌘→ or Button5 Click⌥⌘→, Button5 Click, ⌥⌘→ or Button5 Click⌘], Button5 Click, ⌘] or Button5 Click^ ⌥ Right, Button5 Click, ⌃⌥→, Button5 Click, ⌃⌥→ or Button5 Click^ ⌥ Right, Button5 Click, ⌃⌥→, Button5 Click, ⌃⌥→ or Button5 Click | Forward |
Redo last undone navigation operation.
On an OS X computer, you can also use the three-finger left-to-right swipe gesture. |
| ⌃⌘↑ or ⌃⌘↑⌥⌘↖ or ⌥⌘↖⌃⌘↑ or ⌃⌘↑^ ⌥ Home, ⌃⌥↖ or ⌃⌥↖^ ⌥ Home, ⌃⌥↖ or ⌃⌥↖ | Navigate to Related Symbol | Navigates between files with the various relationships. See Navigation in Source Code. |
Command+Alt+Function (F) keys
| Shortcut | Function | Use this shortcut to... |
|---|---|---|
| ⌥⌘F6 or ⌥⌘F6⌥⌘F6 or ⌥⌘F6⌥⌘F6 or ⌥⌘F6^ ⌥ F6, ⌃⌥F6 or ⌃⌥F6^ ⌥ F6, ⌃⌥F6 or ⌃⌥F6 | Switch to another coverage suite. | Open the Coverage Suites popu-up window and select the desired suite to run. |
| ⌥⌘F7 or ⌥⌘F7⌥⌘F7 or ⌥⌘F7⌥⌘F7 or ⌥⌘F7^ ⌥ F7, ⌃⌥F7 or ⌃⌥F7^ ⌥ F7, ⌃⌥F7 or ⌃⌥F7 | Show usages | Show usages of a symbol at the caret. |
| ⌥⌘F8, ⌥Button1 Click, ⌥⌘F8 or ⌥Button1 Click⌥⌘F8, ⌥Button1 Click, ⌥⌘F8 or ⌥Button1 Click⌥⌘F8, ⌥Button1 Click, ⌥⌘F8 or ⌥Button1 Click⇧ F9, ⇧F9 or ⇧F9^ ⌥ F8, ⌥ Button1 Click, ⌃⌥F8, ⌥Button1 Click, ⌃⌥F8 or ⌥Button1 Click | Quick Evaluate Expression | Evaluate an arbitrary expression without calling Evaluate Expression dialog box. |
| ⌥⌘F9 or ⌥⌘F9⌥⌘F9 or ⌥⌘F9⌥⌘F9 or ⌥⌘F9^ ⌥ F9, ⌃⌥F9 or ⌃⌥F9^ ⌥ F9, ⌃⌥F9 or ⌃⌥F9 | Force Run To Cursor | Run to the line where the caret is located, ignoring breakpoints. |