|Red Hat Updates VS Code For Java Extension|
|Written by Alex Denham|
|Friday, 05 November 2021|
The 1.0 release of Red Hat's extension for Java for Visual Studio Code is now available on VS Code Marketplace. Language Support for Java provides Java language support via Eclipse JDT Language Server, which itself uses Eclipse JDT, M2Eclipse and Buildship.
Although the extension has only just reached version 1.0, it is already among the 10 most popular packages on the VS Code marketplace, and has been installed over 12.5 million times.
Version 1.0 can be used for versions of Java from 1.5 to 17. It has standalone Java files support, and basic Gradle Java support, though Android Gradle isn't supported. New in this version is Maven pom.xml project support. Project Object Model or POM is Maven's fundamental unit of work, and is an XML file that contains information about the project and configuration details used by Maven to build the project.
This release also has "As-you-type" reporting of parsing and compilation errors, along with code completion. It also has code/source actions and refactoring. Javadoc hovers are also supported, so when you hover on a Java element, you'll see the documentation for that element.
Code manipulation has been improved, with support for code outline, folding and navigation. Code snippets have been added, along with code lens for references and implementations. Code Lens are a VS Code feature that shows links above lines of code that give actions as well as extra information. Code formatting for on-type or a code selection is another feature.
Annotation processing support is also supported, and is automatic for Maven projects. You can carry out semantic selection, and do type searches. Semantic highlighting is also supported. Semantic Highlighting is recent addition to VS Code. It means color themes can now write rules to color semantic tokens reported by this extension.
Language Support for Java is available now on the VS Code marketplace.
or email your comment to: email@example.com