Skip to content

MARSLib VS Code Extension

The MARSLib VS Code Extension is your primary engine for Discovery and Innovation in the MARS development ecosystem. While standard FRC projects rely on generic tools, MARSLib use this bespoke extension to empower every student to innovate—automating redundant boilerplate so you can focus on the creative persistence of high-level robotics engineering.

  • Project Lifecycle Management: Integrated sidebar buttons for Building, Deploying, and Simulating your code securely.
  • AdvantageKit Scaffolding: Instantly generate the 4-file IO layer (Interface, Real, Sim, and Subsystem) for new mechanisms using the built-in wizard.
  • Architectural Audits (ProjectDoctor): Runs real-time checks to ensure your code follows “Zero-Allocation” rules and thread-safe practices.
  • Hardware Topology & CAN Map: Dedicated views for visualizing your CAN bus structure to proactively catch ID conflicts.
  • Dynamic Diagnostics: Spin up the Virtual Dashboard, parse Deploy History, or rapidly open your latest log in AdvantageScope.

The extension is currently distributed as a .vsix package for internal team use.

  1. Download: Navigate to the MARSLib VS Code Releases page.
  2. Select Version: Click on the latest release and download the .vsix file from the Assets section.
  3. Open Extensions: In VS Code, press Ctrl + Shift + X to open the Extensions view.
  4. Install from VSIX: .
    • Click the Views and More Actions menu (the three dots ...) in the top-right corner of the Extensions panel.
    • Select Install from VSIX….
    • Choose the downloaded .vsix file.
  5. Verify: Once installed, a MARS icon will appear in your Activity Bar (the vertical sidebar on the left).

Click the MARS icon in the Activity Bar to open the MARSLib Control Center. The sidebar is categorized into multiple dynamic views designed to streamline your development process.

  • Build Robot: Compiles the project using our optimized Gradle toolchains.
  • Deploy Robot: Securely pushes the compiled code to the RoboRIO.
  • Simulate Robot: Launches the 2D physics simulation.
  • Sim + AdvantageScope: Boots simulation and immediately links telemetry visually.
  • Setup Environment: Downloads core FRC libraries and configures Git hooks automatically.
  • Generate Subsystem: Opens a wizard to scaffold a new AdvantageKit-ready mechanism.
  • Generate Physics Test: Sets up a JUnit template for deterministic subsystem simulation validation.
  • Run Audit: Validates the entire codebase against Elite Coding Standards.
  • Open Virtual Dashboard: Boots the diagnostic dashboard locally.
  • Open Command Binder: Visualize your active controller bindings and triggers.

Visualizes your robot’s CAN topology. Provides a dedicated interface to inspect assigned network IDs, helping you prevent CAN-ID overlapping which could result in bricked motors on the field. You can refresh this view at any time with the Refresh CAN IDs button.

Tightly integrated with PathPlanner JSONs, allowing you to instantly visualize paths or track trajectory errors directly within your VS Code development pane.

Keeps a persistent record of the hashes and build artifacts deployed to your robots. Ideal for answering, “Wait, which commit is currently running on the robot?”