Automatically fix Java syntax errors for missing semicolons.
- Saving a Java file automatically fixes any
Syntax error, insert ";"
errors found. - Does not insert semicolons if there are any other language errors in the file.
- May not work for cases like where the Java language server produces less clear syntax errors (e.g. lambda expressions).
Semicolon placement in Java is fairly unambiguous, to the point that the compiler or IDE integration will helpfully tell you exactly where you forgot to add it. This extension goes one step further and adds the missing semicolon.
Compared to other extensions, this one does not require you to run any special commands, but directly detects and fixes the syntax errors.