| Function | Shortcut | Use this shortcut to... |
|---|---|---|
| Comment with Line Comment | ⌘/⌘/⌘/^ Slash⌥ Semicolon | Comment/uncomment current line or selected block with line comments. |
| Comment with Block Comment | ⌥⌘/⌃⇧/⌃⇧/^ ⇧ Slash^ ⇧ Slash | Comment/uncomment code with block comments. |
| Quick Documentation | F1⌃J⌥Button2 Click^ Q^ Q/⌥ Button2 Click | Show a pop-up window with the documentation for the symbol at the caret. |
| Show Table Data | F1⌃J⌥Button2 Click^ Q^ Q | 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.
|
| Pop-up Hector | ⌥⇧⌘H⌥⇧⌘H⌥⇧⌘H^ ⇧ ⌥ H^ ⇧ ⌥ H | Show the Highlighting level pop-up window to configure highlighting in the current file. |
| Parameter Info | ⌘P⌘P⌘P^ P^ P | Show parameters of the method call at the caret. |
| Context Info | ⌃⇧Q⌃⇧Q⌃⇧Q⌥ Q⌥ Q | Show the current method or class declaration when it is not visible. |
| Error Description | ⌘F1⌘F1⌘F1^ F1^ F1 | Show an error or warning description at the caret. |
| External Documentation | ⇧F1⇧F1⇧F2⇧ F1⇧ F1 | Open browser with the documentation for the selected item. |
| Override Methods... | ⌃O⌘O^ ⇧ O | Override base class methods in the current class. |
| Implement Methods... | ⌃I⌘I^ ⇧ I^ I | Override base interface/class methods in the current class. |
| Surround with... | ⌥⌘T⌥⌘T⌥⌘Z^ ⌥ T^ ⌥ T |
Surround selected code fragment with if,
do, tags or other constructs.
In the GUI Designer, use this shortcut to wrap selected components into a container. |
| Generate | ⌘N⌃N⌘N^ N⌥ Insert |
Generate constructors, accessor methods, EJB components, Maven dependencies in the
pom.xml files, using the pop-up menu.
|
| Basic Code Completion |
⌃Space⌃Space⌃Space^ Space⌥ Slash
⌥/⌥/⌃.⌥ Slash⌥ Slash | Code completion for any class, method or variable. |
| SmartType Code Completion | ⌃⇧Space⌃⇧Space⌥⇧Space⇧ ⌥ Space^ ⇧ Space | Code Completion filtering the lookup list basing on expected type. |
| Expand Word | ⌥/⌥/⌃.⌥ Slash⌥ Slash | Goes through the names of classes, methods, keywords and variables in the current visibility scope. |
| Insert Live Template... | ⌘J⌘J^ J^ J | Show a pop-up list of starting with a specified prefix. |
| Surround with Live Template... | ⌥⌘J⌥⌘J⌥⌘J^ ⌥ J^ ⌥ J | Surround the selection with one of the templates. |
| Next Template Variable | ⇥⇥⇥TabTab | In templates: move the caret to the next template variable. |
| Previous Template Variable | ⇧⇥⇧⇥⇧⇥⇧ Tab⇧ Tab | In templates: move the caret to the previous template variable. |