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

  • Microsoft Revamps Fledgling AutoGen Framework for Agentic AI

    Only at v0.4, Microsoft's AutoGen framework for agentic AI -- the hottest new trend in AI development -- has already undergone a complete revamp, going to an asynchronous, event-driven architecture.

  • IDE Irony: Coding Errors Cause 'Critical' Vulnerability in Visual Studio

    In a larger-than-normal Patch Tuesday, Microsoft warned of a "critical" vulnerability in Visual Studio that should be fixed immediately if automatic patching isn't enabled, ironically caused by coding errors.

  • Building Blazor Applications

    A trio of Blazor experts will conduct a full-day workshop for devs to learn everything about the tech a a March developer conference in Las Vegas keynoted by Microsoft execs and featuring many Microsoft devs.

  • Gradient Boosting Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the gradient boosting regression technique, where the goal is to predict a single numeric value. Compared to existing library implementations of gradient boosting regression, a from-scratch implementation allows much easier customization and integration with other .NET systems.

  • Microsoft Execs to Tackle AI and Cloud in Dev Conference Keynotes

    AI unsurprisingly is all over keynotes that Microsoft execs will helm to kick off the Visual Studio Live! developer conference in Las Vegas, March 10-14, which the company described as "a must-attend event."

Subscribe on YouTube