IntelliJ | NetBeans |
---|---|
Module | Project |
Global library | Global library |
Module library | Project library |
Module dependency | Project dependency |
Module SDK | Project-specific SDK |
Action | Shortcut |
---|---|
Run Java program | ctrl+shift+F10 |
Organize imports | ctrl+alt+o |
System.out.println() | Type sout and press ctrl+j |
Delete current line | ctrl + y |
Search | ctrl + shift + f |
Generate getter and setter | alt + insert |
Format code | ctrl + alt + l |
Comment out code | ctrl + / |
Go to line | ctrl + g |
Go to declaration | ctrl + b |
Rename | shift+F6 |
Move lines | ctrl + shift + up/down |
Debug action | Shortcut |
---|---|
Debug a program | Shift + F9 |
Choose configuration and debug | Shift+Alt+F9 |
Step over | F8 |
Step into | F7 |
Smart step into | Shift + F7 |
Step out | Shift + F8 |
Force step over | Shift+Alt+F8 |
Force step into | Shift+Alt+F7 |
Resume program | F9 |
Evaluate expression | Alt+F8 |
Toggle breakpoints | Ctrl+F8 |
View breakpoints | Ctrl+Shift+F8 |