IntelliJ IDEA is a very good Java IDE
Some shortcut keys are as follows:
| macOS | Windows | Description |
|---|---|---|
| Option+Enter | Alt+Enter | show Context Actions, this works anywhere but is good on errors and warnings |
| Shift+F2 | F2 | jump to next warning, error or suggestion |
| Cmd+E | Ctrl+E | show recent files list as well as windows |
| Cmd+B | Ctrl+B | go to declaration |
| Cmd+[ | Ctrl+Alt+Left | Back, handy after "go to declaration" |
| Cmd+] | Ctrl+Alt+Right | Forward |
| Alt+F7 | Alt+F7 | find where used |
| Alt+Up, Alt+Down | Ctrl+W, Shift+Ctrl+W | expand and shrink selection |
| Cmd+/ | Ctrl+/ | add or remove comment |
| Shift+Cmd+Enter | Shift+Ctrl+Enter | complete current statement |
| Ctrl+T | Ctrl+Alt+Shift+T | show all refactoring options |
| Cmd+Option+T | Ctrl+Alt+T | surround with... |
| Shift+Cmd+A | Shift+Ctrl+A | find action |
| 2 x Shift | 2 x Shift | search for anything |
| 2 x Ctrl | 2 x Ctrl | Run something |
| Shift+Option+Click | Shift+Alt+Click | Add/Remove an extra cursor or caret, or Escape to go back to single caret, see IntelliJ IDEA. Helen's Take On: Using Multiple Carets - YouTube for more options on multiple carets |
| Ctrl+V | Alt+` | Show handy popup menu of VCS operations, like commit, push etc |
| Cmd+Opt+L | Ctrl+Alt+L | Reformat the code, based on project style settings |
| Cmd+N | Alt+Ins | Generate code |
Further help can be found at IntelliJ IDEA keyboard shortcuts - Help | IntelliJ IDEA, with a complete list at IntelliJIDEA_ReferenceCard.pdf.
Distractions come in many forms when you code! To quickly navigate to the last edited location in your project, press ⇧⌘⌫ (macOS) or Shift+Ctrl+Backspace on Windows/Linux. #IntelliJIDEATips pic.twitter.com/gJVpLQJZm5
— JetBrains IntelliJ IDEA (@intellijidea) July 28, 2022
You can now generate tables of contents in Markdown files based on the document headers. Call the Insert popup menu (Alt+Insert / ⌘N), select the new option, and the IDE will insert a table of contents at the current caret position.#NewInIntelliJIDEA pic.twitter.com/LOPXWHk6ik
— JetBrains IntelliJ IDEA (@intellijidea) August 19, 2022
If you're running IntelliJ IDEA for the first time, check out our latest video which runs through all your options and has some helpful tips on getting started! https://t.co/uPnDAncEYd
— JetBrains IntelliJ IDEA (@intellijidea) August 19, 2022
In IntelliJ IDEA Ultimate, you can open the Database Tool Window and use ␣ (macOS) or Space (Windows/Linux) to view definitions of database entities including tables, views, sequences, triggers and more! #IntelliJIDEATips pic.twitter.com/UDFiYBKmxs
— JetBrains IntelliJ IDEA (@intellijidea) August 18, 2022
You can easily adjust the code style settings for code fragments by highlighting the code and then pressing ⌥⏎ (macOS), or Alt+Enter (Windows/Linux) and selecting Adjust code style settings. #IntelliJIDEATips pic.twitter.com/ZkGxqwxoXz
— JetBrains IntelliJ IDEA (@intellijidea) August 15, 2022
Learn how to use #Git interactive rebase to clean up your commit history. Change individual commits, squash commits together, drop commits or change the order of the commits. Check out our latest pro tip video: https://t.co/dR5K9UH46d pic.twitter.com/4TExfoY0RB
— JetBrains IntelliJ IDEA (@intellijidea) August 11, 2022
The new Run Current File functionality makes it easy to instantly run and debug single files without having a dedicated run configuration. The option is available from the Run/Debug widget and works for the file you currently have open.#NewInIntelliJIDEA pic.twitter.com/AokoQBUvTT
— JetBrains IntelliJ IDEA (@intellijidea) August 9, 2022