Using the Autocomplete Feature in a VEXcode IQ Python Project

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


How to Use Python Autocomplete Feature

Diagram of a VEX IQ Basebot drivetrain with a 2-motor setup, illustrating components and connections for a Python programming tutorial in the VEX IQ robotics knowledge base.

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

Begin typing to open the selection menu.

Screenshot of VEXcode IQ showing the autocomplete feature in Python programming, highlighting code suggestions for robotics projects on the VEX IQ platform.

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

A comprehensive command list for programming VEX IQ robots using Python, featuring various commands and functions to enhance robotics education and project development.

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 VEXcode IQ's autocomplete feature displaying suggested code snippets and functions for Python programming, relevant to VEX IQ robotics tutorials.

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

Flowchart illustrating the drivetrain commands for VEX IQ robotics, detailing programming functions and control structures used in Python tutorials for educational robotics projects.

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 of a dropdown menu in VEXcode IQ showing options for driving modes in Python programming tutorials for VEX IQ robotics.

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

Diagram illustrating the forward and reverse parameters for programming VEX IQ robots using Python, showcasing the relationship between motor control and movement direction.

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

Diagram showing the conversion parameters between inches and millimeters for VEX IQ robotics, illustrating how to use these measurements in programming and building projects.

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

Flowchart illustrating the process of using the 'wait' command in Python programming for VEX IQ Robotics, highlighting the sequence of actions and timing for effective robot control.

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: