IntelliJ Cheatsheet

Useful Shortcut

This part has appeared in the course website also, basically, it's just a YouTube Video.

Shortcut
Usage

Ctrl + Alt + L

Reformat the code. (Different from VSCode, which uses Shift + Alt + L)

Ctrl + Alt + Shift + N

Search for a symbol in the project

Ctrl + B

Jump to the method definition and jump back (cursor should be at that specific method)

Ctrl + Alt + M

Extract the selected lines of code into a method

Ctrl + Shift + A

Select the block of code, press the left shortcut, and choose "surround with". This is useful to write try/catch statement.

Last updated