FTC Core for VS Code
Create, build and deploy FIRST Tech Challenge robot code in VS Code or VSCodium, without Android
Studio.
Unofficial. FTC Core is a community project. It is not made, affiliated with, endorsed or
supported by FIRST® or the FIRST® Tech Challenge. FIRST®, FIRST® Tech Challenge and FTC® are
trademarks of FIRST (For Inspiration and Recognition of Science and Technology). For official FTC
software and support, see the FtcRobotController
repository and FIRST's own resources.
Features
- Installs the JDK and Android SDK pieces a build needs, only if they're missing, into its own folder.
It never touches
PATH, JAVA_HOME or ANDROID_HOME.
- Java IntelliSense for TeamCode: completion, Javadoc on hover, go to definition and compiler errors.
- Builds with your project's Gradle wrapper and shows errors in the Problems panel.
- Creates projects from official FTC SDK releases, with starter OpModes and optional Sloth and libraries.
- Run on Robot deploys to a Control Hub or Robot Controller phone over Wi-Fi or USB and checks that
the app arrived.
- Sloth hot reload sends changed TeamCode to the robot in seconds and confirms from the robot log that it
loaded.
- Works offline once you run FTC: Prepare for Offline Use.
- Connects to a Control Hub's Wi-Fi on its own, pairs wirelessly on Android 11 and newer, and streams the
Robot Controller log into VS Code.
- Adds, updates and removes libraries (Sloth, Pedro Pathing, Road Runner, SolversLib, FTC Dashboard,
Panels and others). You see every Gradle change first, and old files are backed up.
- Flags outdated library versions and warns before you deploy one with a known bug.
- Offers code snippets for the FTC SDK and your project's libraries.
- Formats Java with Spotless, or uses the Spotless setup a project already has. Teammates without FTC Core can run
./gradlew spotlessApply.
- Checks hardware names in your code against the robot's configuration.
- Updates a project to a newer FTC SDK release without touching TeamCode.
- Opens FTC Dashboard, Panels, scrcpy and the REV Hardware Client from VS Code.
Not supported yet
- IntelliSense for Kotlin code in TeamCode.
- Blocks and OnBot Java. FTC Core works with Android Studio style projects.
- The debugger is experimental and off by default.
Install
Install the FTC Extension Pack from the Visual Studio Marketplace, or from Open VSX in VSCodium. It
includes FTC Core plus the Java extensions it needs. Then open an FTC project folder and follow the
quick start.
You can keep using Android Studio on the same project.
Documentation
Privacy
FTC Core collects no analytics and sends no usage data. It downloads tools only from Eclipse Adoptium,
Google's Android repository, GitHub and Gradle (plus the Gradle Plugin Portal and Maven Central if you
set up Spotless). While an FTC project is open, it fetches the library catalog from GitHub once a day;
ftc.libraries.refreshCatalog turns that off.
License
FTC Core is licensed under the PolyForm Strict License 1.0.0. Noncommercial use is allowed,
which covers students, schools and nonprofit teams. Licenses for bundled npm packages are in
ThirdPartyNotices.txt.
Report bugs and suggest library updates at Mallen220/Public-FTC-Core.