Using the Autocomplete Feature in VEXcode AIR

Using the Autocomplete feature while creating a Python project in VEXcode AIR can help save time and prevent errors when typing commands. This article will walk you through how to use Autocomplete to help you as you are creating Python project for your VEX AIR Drone.

Begin typing to open the selection menu

Autocomplete menu displaying controller object and its functions while typing in the code editor

The device or command name will appear in a drop down selection menu.

Full autocomplete menu showing drone, controller, and available commands like print and wait

To access a list of the possible commands available using the Autocomplete function, press Control + Space (on Windows, macOS, and Chrome OS).

Make a Selection with the Python Autocomplete Feature

Autocomplete showing drone camera object with available climb functions and states.

Press Enter/Return or Tab on your keyboard or select the command with your cursor to make a selection.

Note that with longer selection menus, you can make a selection using one of the following options:

  • Use your Up and Down keys to select the name you want, then press Tab or Enter/Return on your keyboard to make the selection.
  • Use your cursor to scroll up and down in the Autocomplete menu. Then make the desired selection.

Add a Dot Operator to List all the Commands Available to that Device

Autocomplete displaying camera functions such as capture image and start recording for drone object.

Adding a dot operator (a period, “.”) will open a new menu of all commands available to the device, including their parameters.

Autocomplete menu showing camera recording functions under drone.camera object.

Continue typing to narrow down the selection menu further.

Make a Selection by Using One of the Following Options

Autocomplete showing vision options for the drone including get camera image and get data functions.

Use the Up and Down buttons on your keyboard to navigate the menu and then press Return on Mac, Enter on Windows or Chromebook to make a selection.

Select with your cursor on the desired command.

Add Parameters

Autocomplete showing camera selection options DOWNWARD_CAMERA and FORWARD_CAMERA.

Parameters are the options that are passed to the command between the parenthesis.

Autocomplete showing tag options like ALL_TAGS and TAG0 through TAG10 for drone vision data.

Some commands require multiple parameters. Use a comma to separate different parameters in the same command.

Python code line using drone vision get_data with DOWNWARD_CAMERA and ALL_TAGS arguments.

Some parameters can be optional. For more information about parameters, view the method's Help information, or the VEXcode API Reference to determine which parameters are needed, and which are optional.

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

Last Updated: