You can also see recently executed tasks in the Recent Tasks view. The extension offers a Pinned Tasks view to help you pin your favorite tasks so that you can easily find them in a separate view. When there are many Gradle tasks in the workspace, it might be hard to find a specific task. You can view, run, or debug Gradle tasks here. Gradle Projects view lists all the Gradle projects found in the workspace. When you open a Gradle project in VSCode, you can find some useful Gradle views by clicking the Gradle Side Bar item. The extension also offers a better Gradle build file authoring experience including syntax highlighting, error reporting, and auto-completion.
The extension provides a visual interface for your Gradle build, you can use this interface to view Gradle Tasks and Project dependencies, or run Gradle Tasks as VS Code Tasks. VS Code supports Gradle Java project (not including Android) via the Gradle for Java extension. Right-click on a target folder and select Create Maven Project. Open the Command Palette ( ⇧⌘P (Windows, Linux Ctrl+Shift+P)), search for Create Java Project command. There are several ways to create a Maven project:įrom the Maven Explorer, select the + Create Maven Project button. After selection, the extension sends mvn archetype:generate -D. The extension loads archetypes listed in local/remote catalogs. Generate project from Maven ArchetypeĪnother handy feature provided by this extension is to generate a Maven project from Archetype. The Maven extension will call the Java debugger with the right parameters. To debug Maven goals, right-click on a goal and start debugging. You can also specify your favorite commands in settings for future execution.įor each plug-in you use with your project, the extension also provides you an easy way to access the goals within each plugin. You can then select a previous command from history.
Maven is a software tool that helps you manage Java projects and automate application builds. If you run into any issues when using the features below, you can contact us by entering an issue. It covers the Maven for Java and Gradle for Java extensions as well as other tools.
This document is an overview of how to work with your Java build tools in Visual Studio Code.