Top => IntelliJ on Windows/Linux
Practice keyboard shortcuts to generate code while editing a Java source file.
Key sequences to practice:
- (Alt + Insert) - open the "generate code" dialog
- (Ctrl + Z) - undo changes
Steps
- Open the file src/main/java/com/neopragma/idekatas/LongConditional.java
- Select a block of code, such as an if/else block.
- Press (Alt + Insert) to open the "generate code" dialog.
- Select "try/catch" from the list.
- Select another block of code.
- Select "synchronize" from the list.
- Repeat until bored.
- Press (Ctrl + Z) to undo the changes.