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.
Fundamental Java development
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
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 extensions
Spring Boot is an open source, microservice-based Java web framework that is very popular among Java developers. There are great extensions provided by Pivotal and Microsoft for Spring Boot development.
We recommend installing the Spring Boot Extension Pack that contains the following extensions:
More Spring Boot related information can be found at the Spring Boot page.
Gradle for Java
Application Servers (Tomcat / Jetty / etc.)
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.
MicroProfile / Quarkus
Support for Eclipse MicroProfile and Quarkus are provided via the following extensions:
Keymaps for other Java IDEs
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.
Remote development and container support
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.
Azure on Visual Studio Code
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.
Internet of Things
- 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.
Search for other Java 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 (⇧⌘X (Windows, Linux Ctrl+Shift+X)).
- 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.