Practice keyboard shortcuts to extend and shrink selected text while editing a Java source file.
Key sequences to practice:
- ⌥↑ (Option + Up Arrow) - extend selection
- ⌥↓ (Option + Down Arrow) - shrink selection
Steps
- Open the file src/main/java/com/neopragma/idekatas/LongConditional.java
- Select a single token anywhere in the source file.
- Press ⌥↑ (Option + Up Arrow) repeatedly and watch the selection expand to larger scopes.
- Press ⌥↓ (Option + Down Arrow) repeatedly and watch the selection shrink back down to the originally-selected token.
- Repeat until bored.