Kick off Day 4 by configuring Robocode API autocomplete in VS Code.
Configure VS Code
- Inside your project, create a folder named
.vscode. - Inside
.vscode, create a file calledsettings.json. - Paste the following JSON into
settings.json:
{
"java.project.referencedLibraries": [
"../lib/*.jar"
]
}This tells VS Code to load any JAR stored in a sibling lib folder so IntelliSense can use the Robocode API without moving files into your project.
If you keep the JAR in your project root instead, replace ../lib/*.jar with *.jar.