A VEX AIR project in Visual Studio Code (VS Code) can be created using a template, either blank or from one of the provided examples. Follow the steps below to create a new project.

Creating a VEX AIR Project

Visual Studio Code sidebar with the VEX extension panel open, showing PROJECT ACTIONS section with two blue buttons labeled New Project and Import Project, a Documentation section with Extension and API Reference links, and VEX DEVICE INFO indicating No VEX Device Connected; a large dropdown icon near the bottom is highlighted, located above version information for vexcom 1.0.0b39 and another version labeled 0.7.0

Open VS Code on your computer and select the VEX icon in the Activity Bar.

If the VEX icon isn’t visible, make sure the VEX Extension is installed. For installation steps, see the instructions here.

Visual Studio Code interface showing the Actions section of the VEX extension; the New Project button is highlighted in bright blue, while the Import Project button below it is displayed in a darker shade, indicating it is inactive or unselected

Select New Project underneath PROJECT ACTIONS.

Create a New VEX Project screen showing six project platform options: IQ 2nd Generation, EXP, V5, CTE, AIM, and AIR; the AIR platform is highlighted with a white border, indicating it is currently selected.

Select AIR from the list of available platforms.

Create a New VEX Project screen showing project selection for the AIR platform; AIR Empty Template Project is selected with a Python icon, description stating This is a AIR python template project, and a gray EMPTY label displayed below the description

Select a project template to use.

Create a New VEX Project screen showing Project Settings for the AIR Empty Template Project; a red Python-themed AIR project icon is shown with a description stating This is a AIR python template project and an EMPTY label; the Project Name input field is highlighted with placeholder text Write your project name here..., and additional fields for Description and Location are visible below

Enter a name in the Project Name field. Special characters are not allowed.

Note: This name will be used for the project’s top-level folder and will also appear on the VEX AIR Drone Controller's screen after the project is downloaded.

Create a New VEX Project screen displaying Project Settings for the AIR Empty Template Project; the project name field is filled with AIR_Project, and the Description field is highlighted with placeholder text Write your project description here...; project location is shown below as a local file path, with options to browse or go back, and the Create button is visible in the bottom-right corner

You can optionally add a description in the Description field. This can be used to summarize the project’s purpose or any important notes.

Create a New VEX Project screen showing Project Settings for the AIR Empty Template Project; the project name is set to AIR_Project, and the Location field is highlighted showing the local file path c:\Users[user]\Documents\vex-vscode-projects with a Browse button next to it; other fields such as Description and the Create button are also visible

If you want to save the project somewhere other than the default folder, select Browse to choose a location on your computer.

Note: The default project location can be adjusted in the VEX Extension’s global settings.

Create a New VEX Project screen with Project Settings filled for the AIR Empty Template Project; project name is set to AIR_Project, description field shows placeholder text Write your project description here..., location is set to a local vex-vscode-projects folder, and the blue Create button is highlighted in the bottom-right corner indicating readiness to finalize project setup

Select Create.

Visual Studio Code file explorer showing the AIR_PROJECT directory expanded; subfolders include .vscode with files extensions.json, settings.json, and vex_project_settings.json, and a src folder containing the highlighted main.py Python file with a blue and yellow Python icon

Select the main.py file from the file explorer.

Visual Studio Code workspace showing the AIR_PROJECT folder open with file structure in the sidebar; the main.py file is active in the editor under the src folder, containing Python code that imports time and VEXAIR libraries, creates a Drone and Controller instance, and prints Hello, VEX AIR! to the controller screen in a loop with a 0.1 second delay; code includes module metadata with filename, author, creation timestamp, and project description

You can now start coding a VEX AIR project in VS Code.

For a guide on how to download and run a VS Code project, go here.

For more information, help, and tips, check out the many resources at VEX Professional Development Plus

Last Updated: