Intellij Shortcut Cheat Sheet
| Action | Shortcut (Win/Linux) | Mac | |--------|----------------------|-----| | Generate code (getters/setters/constructor) | Alt + Insert | Cmd + N | | Rename (refactor) | Shift + F6 | Shift + F6 | | Extract variable | Ctrl + Alt + V | Cmd + Opt + V | | Extract method | Ctrl + Alt + M | Cmd + Opt + M | | Extract constant | Ctrl + Alt + C | Cmd + Opt + C | | Inline variable/method | Ctrl + Alt + N | Cmd + Opt + N | | Surround with (if/loop/try) | Ctrl + Alt + T | Cmd + Opt + T |
| Action | Windows / Linux | macOS | Description | | :--- | :--- | :--- | :--- | | | Alt + Shift + Insert | Cmd + Shift + 8 | Switches between line selection and block selection. | | Add Caret | Alt + Click | Opt + Click | Places a second cursor at the click location. | | Select Next Occurrence | Alt + J | Ctrl + G | Adds a cursor to the next occurrence of the selected word. | intellij shortcut cheat sheet

