News

Java on VS Code Improves Debugger and Test Runner

The April 2021 update to Java on Visual Studio Code mainly improves debugging and testing.

In VS Code, Java tooling is provided via various extensions that are bundled in the Java Extension Pack that's still in preview in the VS Code Marketplace. The popular extension pack has been installed more than 7.8 million times. The extensions can be downloaded together with the Java Pack Installer that can be found on Microsoft's Java in Visual Studio Code page.

Java Extension Pack
[Click on image for larger view.] Java Extension Pack (source: Microsoft).

Here's a snapshot of what's new in the latest update:

  • Inline Values and Customized Variables View for Debugging: the Debugger for Java extension that's available standalone or in the aforementioned extension pack can now show variable values inline in the editor while stepping through source code, thanks to the adoption of a new debugger extension API.
    Customized Variables
    [Click on image for larger view.] Customized Variables (source: Microsoft).
  • Generating Tests: Using the Java Test Runner extension, developers can now generate the method templates directly from a test file, with more functionality -- specifically support for generating them from a source file -- coming next month. "Automatically generating testing method templates and importing testing packages is a handy feature to improve coding efficiency," Microsoft's Yaojin Yang, Senior Program Manager, Developer Division, said in a May 13 announcement.
  • Java 16 Now Supported: Java 16 reached general availability in March, boasting 17 enhancements ranging from a Vector API (incubator) to sealed classes (preview).
  • Refined Creating Maven Project Experience: This improves working with the popular build automation tool. "Now, you will be promoted to open project right after the completion of creation," Yaojin said
  • .

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • VS Code Copilot Previews New GPT-4o AI Code Completion Model

    The 4o upgrade includes additional training on more than 275,000 high-quality public repositories in over 30 popular programming languages, said Microsoft-owned GitHub, which created the original "AI pair programmer" years ago.

  • Microsoft's Rust Embrace Continues with Azure SDK Beta

    "Rust's strong type system and ownership model help prevent common programming errors such as null pointer dereferencing and buffer overflows, leading to more secure and stable code."

  • Xcode IDE from Microsoft Archrival Apple Gets Copilot AI

    Just after expanding the reach of its Copilot AI coding assistant to the open-source Eclipse IDE, Microsoft showcased how it's going even further, providing details about a preview version for the Xcode IDE from archrival Apple.

  • Introduction to .NET Aspire

    Two Microsoft experts will present on the cloud-native application stack designed to simplify the development of distributed systems in .NET at the Visual Studio Live! developer conference coming to Las Vegas next month.

  • Microsoft Previews Copilot AI for Open-Source Eclipse IDE

    Catering to Java jockeys, Microsoft is yet again expanding the sprawling reach of its Copilot-branded AI assistants, previewing a coding tool for the open-source Eclipse IDE.

Subscribe on YouTube

Upcoming Training Events