Using the Autocomplete Feature in VEXcode Pro V5

The VEX Visual Studio Code Extension has replaced VEXcode Pro V5, which is now end-of-life.

VEXcode Blocks and VEXcode Text remain actively developed and supported for all VEX platforms.

Start by Typing the Device Name

Device names examples (Brain, Motor, Drivetrain)

VEXcode Pro V5 Robot Configuration panel showing ArmMotor and ClawMotor devices with assigned ports.

A drop-down selection menu will appear. This menu will show all the configured devices available. For example, if you have two motors configured, ArmMotor and ClawMotor.

VEXcode Pro V5 code editor showing autocomplete selection menu with ClawMotor suggested while typing.

When you start typing “A” or “C,” you will find the two configured devices as options in the dropdown list.

Configured devices can be modified. For example, you can rename ArmMotor to RobotArmMotor.

To make a Selection with the AutoComplete

VEXcode Pro V5 code editor showing autocomplete menu with ClawMotor and Controller1 options highlighted for selection.

Press “Enter/Return” or “Tab” on your keyboard or left click on the command with your mouse.

NOTE: With longer selection, 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.
  • You can scroll up and down with your mouse. Then you can left click with your mouse on the desired name to make the selection.

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

VEXcode Pro V5 code editor showing ClawMotor followed by dot operator with autocomplete list of available commands displayed.

Make a Selection by Using One of the Following Options

  • Use the “Up” and “Down” buttons on your keyboard to navigate the menu and then press “Return" on Mac, “Enter" on Windows to make a selection.
  • Left click with your mouse on the desired command.

NOTE: You must have a device configured to be able to utilize the AutoComplete functionality for that device. For example, if you have a bumper configured at port A and you start typing “B,” a drop-down menu will include the bumper you configured at port A as “Bumper,” otherwise nothing will show.

Add Parameters

VEXcode Pro V5 code editor showing autocomplete parameter options percent and rpm for the setVelocity command.
VEXcode Pro V5 code editor showing ClawMotor.setVelocity(50, percent); completed with selected parameter.

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

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

Last Updated: