Order | Area | TOCTitle | ContentId | PageTitle | DateApproved | MetaDescription |
---|---|---|---|---|---|---|
13 | java | Extensions | 6076911c-276b-41a3-8510-0022c03c0ef6 | Java extensions for Visual Studio Code | 1/4/2022 | Popular Java extensions for Visual Studio Code |
Thanks to the great Java community around Visual Studio Code, you can use a wide range of extensions to enhance your Java development experience.
Tip: To learn how to install and manage your extensions, refer to the general VS Code extension documentation.
In this topic, we recommend a list of popular extensions helpful for different Java development scenarios.
If you are looking for core Java development experience on Visual Studio Code (including Java code auto-completion, running / debugging / testing Java applications, Java project management, etc.), we recommend the Extension Pack for Java. This extension pack contains a list of popular Java extensions for fundamental Java development:
- Language Support for Java™ by Red Hat
- Debugger for Java
- Test Runner for Java
- Maven for Java
- Project Manager for Java
- Visual Studio IntelliCode
Install the Extension Pack for Java
To get started with this extension pack, you can visit Getting Started with Java tutorial.
You can also install the SonarLint extension that detects quality and security issues in your code.
Spring Boot is an open source, microservice-based Java web framework that is very popular among Java developers. There are great extensions provided by VMware and Microsoft for Spring Boot development.
We recommend installing the Spring Boot Extension Pack that contains the following extensions:
Install the Spring Boot Extension Pack
More Spring Boot related information can be found at the Spring Boot page.
Visual Studio Code offers support Gradle support via the Gradle for Java extension. To learn more how to use this extension, visit the Gradle section on Build Tools page.
Community Server Connectors is an excellent extension for application servers such as Tomcat and Jetty.
To learn more about how to work with Java application servers on Visual Studio Code, refer to the Application Server page.
Support for Eclipse MicroProfile and Quarkus are provided via the following extensions:
There are some extensions from the community for developers who might be used to the keyboard shortcuts from other Java IDEs.
Keymap extensions apply keyboard shortcuts from other IDEs or editors on to VS Code so you don't have to retrain your fingers to new keyboard shortcuts.
We'd also like to recommend a couple of other extensions that are useful for remote and container development scenarios.
- The Remote Development extensions let you use VS Code to access a container, a remote machine, or the Windows Subsystem for Linux.
- You can use Docker extension to build docker images and work with image registries.
- Kubernetes extension provides an Explorer view to manage clusters and the nodes inside. It also provides advanced syntax support for editing Kubernetes manifest files.
- Live Share is a great tool to use when you need to collaborate with someone else on the same code base.
The Azure extensions for Visual Studio Code provide seamless integration with Azure and the cloud. There are a few Azure extensions we'd like to recommend.
- The Azure Repos extension makes it easy to connect to your Azure DevOps Servers, allowing you to easily monitor builds, pull requests, and work items for your TFVC or Git source repositories.
- The Azure IoT Toolkit for VS Code makes it easy to develop and connect your IoT applications to Azure. With this extension, you can interact with Azure IoT Hub, manage devices connected to Azure IoT Hub, and develop with code snippets for Azure IoT Hub.
- The Azure Tools Extension Pack provides a rich set of extensions that makes it easy to discover and interact with Azure services to power your applications.
- The Azure Resource Manager Tools provide a rich editing experience for Azure Resource Manager deployment templates and template language expressions. For example, IntelliSense for TLE function names, parameter references, signature help, Go to Definition, Peek Definition, and Peek References as well as Errors and Warnings, making it quick and easy to author Azure Resource Manager templates in VS Code.
Visit Azure Extensions to find more Azure extensions.
If the extensions above do not meet your requirement, you can also search for other Java related extensions within Visual Studio Code. Here are the steps:
- Go to the Extensions view (
kb(workbench.view.extensions)
). - Filter the extensions list by typing "java".
We also appreciate contributions to any of our existing extensions and we hope you'll create new Java extensions if you don't find what you're looking for in the Marketplace.