Using the Autocomplete Feature in a VEXcode V5 Python Project

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


How to Use Python Autocomplete Feature

Diagram of a Clawbot drivetrain configuration using two motors without a gyro, illustrating the setup for Python tutorials in the V5 category.

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

Begin typing to open the selection menu.

Screenshot of a selection menu in VEX V5 Python Tutorials, displaying various options for programming and controlling VEX robots.

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

Flowchart illustrating control space commands in VEX V5 Python programming tutorials, depicting various programming actions and their relationships.

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

Screenshot of a Python tutorial interface showing code examples and explanations, part of the V5 Category Description section on VEX Knowledge Base.

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

Screenshot of a Python tutorial interface from VEX Robotics, displaying code examples and explanations for programming in Python, relevant to V5 Category Description.

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

Screenshot showing the options for choosing a drive in VEX V5 robotics programming, illustrating the selection process for Python tutorials.

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

Flowchart illustrating the options for driving in VEX V5 robotics, highlighting different programming paths available in Python tutorials.

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

Conversion chart showing inches to millimeters, illustrating the relationship between these two units of measurement, relevant for Python tutorials in the V5 category.

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

Graphic illustrating the 'Wait' function in Python, featuring a visual representation of its usage and parameters, relevant to V5 Category Description and Python Tutorials.

Some parameters are optional, such as the wait=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: