Top => IntelliJ on Windows/Linux
Kata for practicing keyboard shortcuts for common editing operations
Key sequences to practice
- (F2) - go to the next error in the file
- (Shift + F2) - go to the previous error in the file
Walkthrough of steps with explanations
- Open the Java source file, CodeCompletionPractice.java.
- Enter some Java source code that contains syntax error, for example like this:
public void method1() {
int a = 4;
int b = 6;
String x = "hey"
int c = 7;
int d = "alpha";
if (myMethod()) {
System.out.prinnn;
}
}
}
- Press (F2) repeatedly and watch the caret move forward through the file to each error.
- Press (Shift + F2) repeatedly and watch the caret move backward through the file to each error.
And then to revert:
- Press (Ctrl + Z) repeatedly to undo changes in each file.