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!
- Installing Gradle on macOS - Gradle Tutorial
- Install Gradle VS Code for Java Projects
- Adding Jackson dependency to Java Gradle Project
- Gradle FAILURE: Build failed with an exception - Task not found in root project
- Fix: Unsupported Java. Your build is currently configured to use Java 17.0.5 and Gradle 7.1.
- Fix: Invalid Gradle JDK configuration found. Could not find the required JavaSDK
- Run IntelliJ Java main method without Gradle build
- How to Clear Gradle Cache on Mac
- Create a Gradle Java Project in VS Code
- How to run Gradle build in offline mode
- Fix: Deprecated Gradle features were used in this build, making it incompatible with Gradle
- Fix: Spring Boot + IntelliJ + Gradle : Unsupported class file major version 64 Error
- Find installed Gradle version command
- Task is ambiguous in root project gradle-examples. Candidates are: myTask1, myTask2
- How to create Gradle Multi-Project in IntelliJ
- Generate Project Dependency tree using Gradle Command
- Fix Power Automate FLOW error - InvalidTemplate Unable to process template language expressions in action - Microsoft
- What is Android Toast.LENGTH_SHORT and Toast. LENGTH_LONG durations - Android
- Clone Bitbucket repo in VS Code - HowTos
- Android Installation error: INSTALL_FAILED_OLDER_SDK on Device - Android
- How to enable Do Not Disturb (DND) mode in Microsoft Teams - Teams
- Java code to check Internet Connection on Android Device Programmatically - Android
- How to hide lines in Notepad++ - NotepadPlusPlus
- Format Code in Visual Studio - VS Code [Mac/Windows/Linux] - HowTos