IntelliJ IDEA - ilya-khadykin/notes-outdated GitHub Wiki

Hotkeys

Shortcut Comment
Ctrl + G navigate to specific line inside the editor
Ctrl + Shift + F8 open Breakpoints dialog
Ctrl + F12 show all methods and variables in a class
Ctrl + Shift + F Find in Path
Shift + Delete deletes the entire line (will 'cut' it to clipboard)
Ctrl + Alt + L to reformat and optimize imports
Ctrl + Shift + J to join lines (pull content of next line up to current line)
Alt + 7 shows code structure of a Class (the Structure tool) window
Ctrl + F12 shows the Structure popup

Code

Rearrange code

Menu: Code > Rearrange Code

Rules are defined in Settings fro Code Style

Source: https://blog.jetbrains.com/idea/2012/10/arrange-your-code-automatically-with-intellij-idea-12/

Analyze code

Menu: Analyze > Inspect Code

You can configure level of inspection by Analyze > Configure Current File Analysis

References