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

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube