Using the VEXcode IQ C++ Autocomplete Feature

Using the C++ Autocomplete feature while creating a C++ project in VEXcode IQ can help save time and prevent errors when typing commands.


How to Use the C++ Autocomplete Feature

Note: This project uses the Clawbot (Drivetrain, 2-motor) template.

Clawbot Drivetrain 2 motor example project thumbnail.

Begin typing to open the selection menu.

VEXcode IQ C++ Workspace with a dropdown menu of suggested commands. The letter D has been typed and commands starting with that letter are available in the menu.

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

VEXcode IQ C++ Workspace with a dropdown menu of all suggested commands. A scroll bar is available to scroll through the options.

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 C++ Autocomplete Feature

VEXcode IQ C++ Workspace with a dropdown menu of suggested commands. The letter D has been typed and the keyboard is being used to step through the available commands. Drivetrain is the first suggestion and it is highlighted.

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

VEXcode IQ C++ Workspace with a dropdown menu of suggested commands. The Drivetrain device and a dot operator have been typed, and commands for that device are available in the menu.

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

Make a Selection by Using One of the Following Options

VEXcode IQ C++ Workspace with a dropdown menu of suggested commands. The Drivetrain device and a dot operator have been typed and the keyboard is being used to step through the available commands. The Drive For command is highlighted.

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

VEXcode IQ C++ Workspace with a dropdown menu of suggested commands. The command Drivetrain.driveFor has been typed with a leading perenthesis, and parameters for that function are available in the menu. The first parameter option reads forward.

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

VEXcode IQ C++ Workspace with a dropdown menu of suggested commands. The command Drivetrain.driveFor(forward,100,) has been typed with a blank final parameter, and parameters for that part of the function are available in the menu. The first parameter option reads inches.

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

VEXcode IQ C++ Workspace with a completed command that reads Drivetrain.driveFor(forward,100,mm,true).

Some parameters are optional, such as the true in the following example. For more information about parameters, view the command’s Help information 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: