News

VS Code Continues Java Blitz with Bevy of New Extensions

The Visual Studio Code team clearly believes there's an appetite for a new editing tool among the Java community.

The team has continually added Java functionality to the open source, cross-platform code editor via extensions, with much attention being paid to its Debugger for Java extension, downloaded more than 451,000 times.

Microsoft's efforts to infuse Java goodness into VS Code might stem from the tremendous popularity of the Language Support for Java (preview) extension by Red Hat, with which the Java debugger works. Downloaded a whopping 2.1 million-plus times, that extension provides Java support via the Eclipse JDT Language Server implementation of the Language Server Protocol.

The Language Server Protocol, actually originated by Microsoft, "is used between a tool (the client) and a language smartness provider (the server) to integrate features like auto complete, goto definition, find all references and alike into the tool."

After introducing, open sourcing and improving the Java debugger, Microsoft continued to add more Java extensions to the Visual Studio Code Marketplace.

Last month, for example, the VS Code team announced support for the JUnit unit testing framework via the Java Test Runner extension. The lightweight test runner/debugger recognizes JUnit4 tests (support for JUnit 5 is something the team would like to explore, program manager Xiaokai He said), performs run and debug tests and lets developers view test status and run summaries.

The VS Code team also continued to improve the Java debugger, on Monday announcing the fifth update in the past three months.

And just yesterday He followed up by announcing three more Java-related extensions. They are:

  • Maven Project Explorer. The open source Apache Maven is a software project management and comprehension tool used to manage a project's build, reporting and documentation from a central piece of information.

    He said Maven was extremely popular in the Java community and the VS Code team wanted to make it even easier to use by providing functionality in the Project Explorer extension such as:

    • Scanning pom.xml in a workspace and displaying all Maven projects and their modules in the sidebar to make them easy to access.
    • Providing shortcuts to common Maven goals, namely clean, validate, compile, test, package, verify, install site and deploy, which won’t need to be typed in the command-line window anymore.
    • Preserving history of custom goals for fast re-run long commands (for example, mvn clean package -DskipTests -Dcheckstyle.skip). He said internal data shows custom goals are very popular among Maven users, so the team believes this will be a useful feature for a developer's repeating tasks.
    • Generating projects from Maven Archetype.

  • Tomcat: This tool is for working with Apache Tomcat, an open source implementation of the Java Servlet, JavaServer Pages, Java Expression Language and Java WebSocket technologies. "With the Tomcat extension, you can manage all your local Tomcat servers within the editor and easily debug and run your war package on Tomcat and link Tomcat into workspace," He said.

  • Checkstyle: According to its SourceForge site, "Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. It automates the process of checking Java code to spare humans of this boring (but important) task. This makes it ideal for projects that want to enforce a coding standard."

    He added his own description. "Checkstyle is a convenient tool to apply Checkstyle rules to your Java source code so you can see the style issues and fix them on the fly. It automates the process of checking your Java code so you would be freed from this boring task while keeping your format correct."

"If you’re trying to find a performant editor for your Java project, please try out those new extensions and let us know what you think!" He concluded. "We plan to keep updating and releasing new extensions to make VS Code a better editor for Java." In the meantime, there are many more Java-related extensions in the Visual Studio Code Marketplace, which you can view here.

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus

Featured

  • Creating Reactive Applications in .NET

    In modern applications, data is being retrieved in asynchronous, real-time streams, as traditional pull requests where the clients asks for data from the server are becoming a thing of the past.

  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

  • .NET 9 Preview 3: 'I've Been Waiting 9 Years for This API!'

    Microsoft's third preview of .NET 9 sees a lot of minor tweaks and fixes with no earth-shaking new functionality, but little things can be important to individual developers.

  • Data Anomaly Detection Using a Neural Autoencoder with C#

    Dr. James McCaffrey of Microsoft Research tackles the process of examining a set of source data to find data items that are different in some way from the majority of the source items.

Subscribe on YouTube