Keyboard shortcuts#
These are the most important keyboard shortcuts - the ones you should memorize (for the Linux/Windows version; on Mac the ctrl is usually replaced by Cmd):
alt + enter- context menu, depending on where the cursor is: solve problems & errors, create tests, create variables etc.psvm+ Tab - createmain()sout+ Tab - create print statementsoutv+ Tab - create print statement with variablefori+ Tab - createforloop`^ + shift + R- run main()shift + F6- rename variable, method or classctrl + B- go to sourcectrl + N- generate code (getters and setters, constructors etc.)ctrl + O- override methodsctrl + QorF1- show Javadoc of selected methodctrl + R- repeat last run