News

Red Hat Adds Java Features to Visual Studio Code

The latest update to Java on Visual Studio Code gets new functionality provided by Red Hat via its language support extension.

Java tooling for the open source-based, cross-platform code editor is supplied by a host of extensions, all bundled together in the Java Extension Pack, which includes Language Support for Java by Red Hat. The Red Hat tool has actually been installed more times (9.7 million) than the Java Extension Pack (7.6 million).

In the March update to Java on Visual Studio Code (actually announced on April 20), Red Hat contributed a couple of "very important things" that engineers have been working on, uncovered this week by Yaojin Yang, senior program manager in the Developer Division at Microsoft:

  • Type hierarchy: This adds to previous VS Code support for call hierarchy for Java. The Microsoft team worked with Red Hat to provide type hierarchy in the latest release of the latter's popular extension. It lets developers view type hierarchy in class, supertype or subtype view.
    Type Hierarchy in Animated Action
    [Click on image for larger, animated GIF view.] Type Hierarchy in Animated Action (source: Microsoft).
  • Package refactoring when moving file: Yaojin Yang said many developers have waiting for this feature that now comes in the Red Hat tool. It lets VS Code automatically update package declaration and import statements when a .java file is moved from one folder to another, while allowing developers to review and undo package changes.

Yet more functionality was added in the extension pack's Maven for Java tool, with more than 8 million installs. It adds support for Maven lifecycle, meaning developers can use the Maven explorer view to directly execute common lifecycle phases with a click on a phase's "run" icon.

Finally, classpath configuration has been improved. "Managing path for source code, output, runtime, and libraries is an important project management task, almost every Java developer will perform," Yaojin Yang explained. "For those using build tool like Maven or Gradle, the tool allows managing these paths through its configuration file. However, for those not using the build tool, especially like students, they need rely on IDE/editor tool to manage. Responding to that need, we released classpath configuration feature."

Full Java on Visual Studio Code documentation provides more on using the popular programming language with the popular code editor, along with tutorials.

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Mastering Blazor Authentication and Authorization

    At the Visual Studio Live! @ Microsoft HQ developer conference set for August, Rockford Lhotka will explain the ins and outs of authentication across Blazor Server, WebAssembly, and .NET MAUI Hybrid apps, and show how to use identity and claims to customize application behavior through fine-grained authorization.

  • Linear Support Vector Regression from Scratch Using C# with Evolutionary Training

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the linear support vector regression (linear SVR) technique, where the goal is to predict a single numeric value. A linear SVR model uses an unusual error/loss function and cannot be trained using standard simple techniques, and so evolutionary optimization training is used.

  • Low-Code Report Says AI Will Enhance, Not Replace DIY Dev Tools

    Along with replacing software developers and possibly killing humanity, advanced AI is seen by many as a death knell for the do-it-yourself, low-code/no-code tooling industry, but a new report belies that notion.

  • Vibe Coding with Latest Visual Studio Preview

    Microsoft's latest Visual Studio preview facilitates "vibe coding," where developers mainly use GitHub Copilot AI to do all the programming in accordance with spoken or typed instructions.

  • Steve Sanderson Previews AI App Dev: Small Models, Agents and a Blazor Voice Assistant

    Blazor creator Steve Sanderson presented a keynote at the recent NDC London 2025 conference where he previewed the future of .NET application development with smaller AI models and autonomous agents, along with showcasing a new Blazor voice assistant project demonstrating cutting-edge functionality.

Subscribe on YouTube