Intro to FRC Programming - Romi
  • INTRODUCTION
    • Overview
    • Important Links
  • 💽Setup
    • Setting up the Romi's Software
    • Downloading Essential Tools
    • APCS vs FRC
  • How To Code in VSC
    • VSC- Intro
    • A Tour Through VSC
    • Creating a Regular Java Project
  • Intro to Java
    • What is Java?
    • Beginning Steps
    • 🟩Fundimentals of Java
      • Variables
      • Operations
      • Methods
      • Comments
      • If Statements and Conditions
      • Boolean Zen
      • Loops
      • Challenge- Create a Box House
    • 🟨Advanced Concepts
      • Objects
      • Scanners
      • Null Objects
      • Arrays
      • Errors
      • For-Each Loops
    • 🟥Object Oriented Programming
      • Basics of OOP
      • Instance Classes
      • Static Classes
  • 🕑Romi Curriculum- Timed Base
    • Romi Curriculum- Introduction
    • Creating a WPILIB Project
    • Running Your Code
    • The Robot Class
    • Subsystems
      • RomiDrivetrain
    • Cool stuff i will rename this category later
      • Spark Motors
      • PIDs
      • External Controllers
      • Encoders
  • 🖥️Romi Curriculum- Command Based
    • Command Based Code
    • RobotContainer
    • Commands
    • CommandScheduler
  • UNRELATED IMPORTANT CODING KNOWLEDGE
    • Constants
  • SAMPLE CODE
    • Tank Drive Example
      • RobotContainer
      • TankDriveSubsystem
      • MoveRobotCommand
    • Worktop Systems Sample Java Code
      • Belt Elevator Sample Code
      • Rotating Arm Sample Code
Powered by GitBook
On this page
  1. How To Code in VSC

Creating a Regular Java Project

PreviousA Tour Through VSCNextWhat is Java?

Last updated 2 months ago

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

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.

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
Drawing
Drawing