Understanding the Colorization of Code in VEXcode VR Python

When creating Text projects, the syntax, spacing, indenting, and spelling in your code in very important to ensure that your project runs as intended. The color coding present in the Workspace in VEXcode VR Python is an extra visual cue that you have entered your code into your project correctly.

If there is an unrecognizable component while typing commands into the Workspace, it will remain black (like the user-created category). This can be a useful indicator as you are working to prevent frustration or extra troubleshooting later on.

Use the cursor and keyboard to correct errors. As the components are recognized, they will be colorized correctly.

The colorization of code follows the following conventions:

Classes

Screenshot of VEXcode VR interface showing various coding classes and options for programming a virtual robot, illustrating the platform's educational tools for learning coding concepts and robotics.

The individual device the command pertains to (i.e. drivetrain, pen, brain)

Commands

Screenshot of VEXcode VR commands interface, displaying various programming blocks and options for coding a virtual robot, illustrating tools available for users in the Project Help section.

The behavior within the command (i.e. drive, turn)

Parameters

Screenshot of VEXcode VR interface showing a parameter configuration window, illustrating coding options and settings for users in a virtual robot programming project, relevant to the Project Help section.

Information about how the behavior executes (i.e. direction, distance)

Structures

Diagram illustrating the structure of VEXcode VR projects, showcasing key components and their relationships within the online programming environment for coding concepts and robotics education.

Control the flow of the project (i.e. conditionals, loops)

Values

A visual representation of key values related to VEXcode VR, illustrating principles of coding and robotics education, aimed at enhancing problem-solving and computational thinking skills for students and educators in a virtual programming environment.

Numerical parameter assigned to the behavior (i.e. number of degrees of a turn)

User Created

Screenshot of the VEXcode VR user interface showing a project help section, featuring coding blocks and options for debugging in a virtual robot programming environment.

User created variables and commands

Comments

Screenshot of the VEXcode VR Project Help section, displaying coding tips and resources to assist users in programming a virtual robot, highlighting features that support educational objectives in STEM.

The text following a # that will not effect the program.

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

Last Updated: