Java Extensions for VS Code
Visual Studio Code provides many features as an editor. In addition to that, you can install some high quality extensions to add features to VS Code for Java development.
Tip: To see how to install and manage your extensions, please refer to the extension documentation.
To help set up Java on VS Code, there is a Java Extension Pack which contains two popular extensions:
There are many other popular Java extensions you can pick from, including:
Thanks to the great Java community around VS Code, the list doesn't end there. You can search for more Java extensions easily within the VS Code:
- Go to the Extensions view (⇧⌘X (Windows, Linux Ctrl+Shift+X)).
- Filter the extensions list by typing "java".
Recommended extensions for cloud (Azure) development
Along with the language support, if you are deploying your applications to the cloud, especially Azure, there is an Azure Extension Pack which contains extensions for popular Azure Services. Here's the list of services supporting Java:
App Services (Websites)
- The Azure App Service extension lets you quickly browse, create, manage, and deploy Azure App Service websites.
Functions (serverless computing)
- The Azure Functions extension lets you quickly browse, create, manage, deploy, and even debug Azure functions locally.
- The Docker Tools extension makes it easy to develop and deploy containerized micro-service based applications using Docker containers. Use Visual Studio Team Services to create a CI/CD pipeline to build your containerized applications, deploy them to the Azure Container Registry, run web sites directly in Azure App Services, and run multi-container systems at scale using the Azure Container Service.
- The Azure Data Lake Tools make it easy to develop U-SQL projects against Azure Data Lake! This extension provides a cross-platform, light-weight, keyboard-focused authoring experience for U-SQL while maintaining a full set of development functions.
The Azure CosmosDB extension lets you create, manage, and query CosmosDB accounts, including support for Mongo, Graphs, Tables, and DocumentDB databases.
The Microsoft SQL extension provides support for developing Microsoft SQL Server, Azure SQL Database and SQL Data Warehouse with a rich set of functionalities. For example, create and manage connection profiles and most recently used connections. Write T-SQL script with IntelliSense, snippets, syntax colorizations, error validations and GO batch separator. Execute scripts, view the results in a document, and save results to json or csv file format and view in the editor.
- The Visual Studio Team Services extension makes it easy to connect to your Team Services and Team Foundation Servers, allowing you to easily monitory 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 for VS Code adds commands to the Command Palette (⇧⌘P (Windows, Linux Ctrl+Shift+P)) that make it easy to create and access Azure resources directly from VS Code. For example, you can create App Service Web Apps and Functions, Storage accounts, and browse to any number of resources in the Azure Portal.
The Azure Resource Manager (ARM) 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, GoTo Definition, Peek Definitions, and Find All References (Shift+F12) as well as Errors and Warnings, making it quick and easy to author ARM templates in VS Code.
The Azure CLI Tools provide an enhanced editing experience when authoring Azure CLI 2.0 commands, with full completions (IntelliSense), the ability to invoke one or more commands in the terminal, and the ability to easily view and format results as a separate JSON document.
The Azure Application Insights extension brings information from your production services right into the editor (via Code Lenses), helping you to find and fix issues even faster.