intellij-idea Compile and Run


Example

Make project (compile modifed and dependent)

Windows: Ctrl + F9

OS X / macOS: Cmd + F9

Compile selected file, package or module

This is useful to know, as when debugging this shortcut can be used to quickly reload / hotswap classes.

Windows: Ctrl + Shift + F9

OS X / macOS: Cmd + Shift + F9

Select configuration and run

Windows: Alt + Shift + F10

OS X / macOS: Option + Shift + F10

Select configuration and debug

Windows: Alt + Shift + F9

OS X / macOS: Option + Shift + F9

Run

Shift + F10

Debug

Shift + F9

Run context configuration from editor

Windows: Ctrl + Shift + F10

OS X / macOS: Cmd + Shift + F10