Creating a Regular Java Project

If everything has gone to plan and you open the VSC app, you'll get greeted with this screen.

Drawing

This tutorial is taught on Windows. If you're using a different platform like Mac or Linux it could be slightly different.

After you do a little bit of customization, you should be greeted by a screen like this. Go to the X button on the top right, and look at the three buttons below it.

Drawing

Notice how the leftmost one is more colorful than the rest— and is suspiciously similar to WPILIB VSC's shortcut icon. This is the Command Palette. This opens a list of commands that you'll grow to love. Let's open it!

In the search bar, delete the >WPILib and enter >Java. This switches the recommended options from robot-related commands to just general Java commands.

Now, click Java: Create a Java Project. A Java project is a collection of files that lets you modify and run code in VSC. We'll use one to create most of our code.

After you click the button, you'll be greeted by a list of build tools as shown below. These are for pretty advanced and specialized coding, so click No build tools. After you click this, you just set a project location for your project.

Now, you'll be asked to select a file location for your project, and after that, you'll have to do a bit of setup. Fill these out with whatever.

It's recommended to create a massive folder holding all of your Java projects and files. Put this folder in something like Documents, or create a folder in Windows(C:) -> Users -> current user (in Windows).

Good job— you've created a Java Project! Now, on the list of expandable stuff under "Explorer", open src and then App.Java.

Drawing

Last updated