Caution: VS Code guides section is a work-in-progress, containing content contributed by students.
build.gradle
file in your project root.Open
. Otherwise, click File
-> Open
.Open
.Gradle
in the Extensions view (Ctrl+Shift+X
or Cmd+Shift+X
), and install a Gradle extension if you haven’t already (e.g., Gradle for Java).settings.json
: You can find it by opening the Command Palette (Ctrl+Shift+P
or Cmd+Shift+P
), then typing Preferences: Open User Settings (JSON)
.{
"java.configuration.runtimes": [
{
"name": "JavaSE-17",
"path": "/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home"
}
],
"java.import.gradle.java.home": "/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home"
}
"gradle.nestedProjects": true
to your settings.json
file.Contributors: Rui Shan (@ruishanteo)