If you want to work on Java Project on Visual Studio Code (VS Code) and want it to be a Gradle Project, you will need to install the Gradle extension.
Steps to install Gradle Extenstion in VS Code
- Open VS Code,
- Press: ⌘ Command + Shift + X (Control + Shift + X on Windows) to open Extenstions,
- Now type in Gradle for Java, click on install,
- And you are good to go!

Name: Gradle for Java
Id: vscjava.vscode-gradle
Description: Manage Gradle Projects, run Gradle tasks and provide better Gradle file authoring experience in VS Code
Version: 3.12.4
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-gradle
Now you can create a Gradle Java project by opening the Palette and typing Gradle: Create a Gradle Java Project

-
Have Questions? Post them here!
More Posts related to Gradle,
- Find installed Gradle version command
- How to Clear Gradle Cache on Mac
- Generate Project Dependency tree using Gradle Command
- How to create Gradle Multi-Project in IntelliJ
- Adding Jackson dependency to Java Gradle Project
- How to run Gradle build in offline mode
- Gradle FAILURE: Build failed with an exception - Task not found in root project
- Install Gradle VS Code for Java Projects
- Create a Gradle Java Project in VS Code
- Run IntelliJ Java main method without Gradle build
- Installing Gradle on macOS - Gradle Tutorial
- Task is ambiguous in root project gradle-examples. Candidates are: myTask1, myTask2
More Posts:
- How to delete a dir or folder using Python code - Python
- Truncate table using Java JDBC Example - Java
- How to close all tabs of Notepad++? - NotepadPlusPlus
- Calculate Volume of Cube - C-Program
- Get HTML table td, tr or th inner content value with id or name attribute - Html
- Find Mac version using terminal command - MacOS
- Program 1: Print Hello World! - 1000+ Python Programs - Python-Programs
- [fix] How to Show file extensions on all files on Mac - MacOS