Java Extensions for Visual Studio Code
Visual Studio Code provides many features as a Java language editor. You can also install VS Code extensions to add more features for Java development.
Tip: To see how to install and manage your extensions, refer to the extension documentation.
To help set up Java on VS Code, there is the Microsoft Java Extension Pack which contains these 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 Java 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 a list of Azure extensions 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 extension makes it easy to develop and deploy containerized micro-service based applications using Docker containers. Use Azure DevOps 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 Cosmos DB extension lets you create, manage, and query Cosmos DB 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 Azure DevOps 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, Go to Definition, Peek Definition, 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.