December 20th, 2023
heart1 reaction

Java on Visual Studio Code Update – December 2023

Senior Program Manager

Hi everyone, welcome to the December update for Visual Studio Code for Java! We wish everyone a Merry Christmas and Happy New Year! In this blog we have tons of exciting new features including test coverage, UX updates as well as Spring Boot updates. Let’s get started!

Test with Coverage in Visual Studio Code Insiders

Test coverage is a metric which shows how much our test cases are covering the software code when we run those test cases. In previous versions, developers are not able to see the test coverage when they run tests in Extension Pack for Java, and test coverage is probably one of the most wanted features from our user feedback.

We have great news to share! With the recent progress from the GitHub Issue here, our team has adopted the latest Test Coverage API in Extension Pack for Java. Developers can already see the coverage results running Java tests in the Insiders version of Visual Studio Code. To get the coverage results, please select “Execute Using Profile” when running tests, then select “Run Tests with Coverage“, and you will be able to see the “Test Coverage” Panel in the Test Explorer.

Note that to use this new feature, please make sure you have both Insiders version of Visual Studio Code and latest version of Extension Pack for Java. Here’s a demo for this feature.

Test Coverage in Insiders

Test Coverage in Insiders

Group Java Extension Settings by category

As more features are added into the Java extensions in VS Code, more settings are also created to control relevant behaviors. Previously all our Java related settings are grouped together, which will make it really hard to find a specific setting developer wants. In our latest release, we have improved this UX so that the settings are grouped by categories and usage. This will make developers find the settings in a much more efficient way. Here’s a screenshot of the current experience.