For Java language support, Microsoft releases an update for Java in Visual Studio Code every month.
The March 2020 update was announced by Xiaokai He, Senior Program Manager for Java on Visual Studio Code and Azure, on Microsoft’s Java blog. Let’s drive right in and see what the latest features are.
SEE ALSO: Top 6 IDEs of March
SonarLint and Syntax Mode
The IDE extension SonarLint, which helps detect and fix issues while writing code, has been added to VS Code. Previously available in other IDEs including IntelliJ IDEA, it is popular among Java developers and has been brought to VS Code through a collaboration of Microsoft, SonarLint and Red Hat.
This gif shows how the SonarLint extension looks in VS Code.
As of the March update, you can say goodbye to the “Classpath is incomplete” warning:
Xiaokai He points out that a lot of developers found this warning unhelpful. Therefore, the latest release adds a dedicated mode for reading non-project Java code—named Syntax Mode.
Syntax Mode is designed to work best for Java source files and folders that do not involve a project system. It supports Code Navigation as well as Outline features, and Syntax errors are reported.
In the PROBLEMS view, a right click on the warning shows all type errors and provides full support:
You can then switch back to Syntax Mode as shown here:
SEE ALSO: VS Code 1.43 ships with TypeScript 3.8.3 and full-sized Search Editors
Further updates in Java on VS Code include performance improvements and the option to rename lambda parameters.
The blog post lists all the latest changes.
The post Java on VS Code now comes with Syntax Mode and SonarLint support appeared first on JAXenter.
Source : JAXenter