Using the Code Viewer for Python in VEXcode V5

Using the Code Viewer in VEXcode V5 is easy and helpful.


How to open the code viewer

VEXcode V5 icon representing the V5 category for Python tutorials, featuring a stylized logo with a modern design and vibrant colors.

Launch VEXcode V5.

Screenshot of the V5 blocks interface used in Python tutorials, showcasing various programming blocks and their arrangement for educational purposes in robotics.

The platform defaults to the Blocks interface.

Icon representing the code viewer feature in Vex's Python tutorials, illustrating the functionality for users to view and edit code snippets effectively.

Select the Code Viewer icon to open the Code Viewer window.

Screenshot of the Code Viewer window in VEXcode V5, highlighting key features and functionalities for Python programming tutorials.

The Code Viewer window displays the Python version of the Blocks project.

Screenshot of the VEXcode V5 Code Viewer interface, showing options to close the viewer, relevant to Python tutorials in the V5 category description.

Hide the Code Viewer window when finished by selecting the right arrow next to the Help icon.


How text commands are added when blocks are added.

Screenshot of a Python tutorial in V5, showcasing the 'Hello World' program output with added print statements for clarity and understanding.

Add a [Print] block to the project.

Screenshot of the open code viewer displaying a Python script that prints 'Hello' to the console, illustrating a basic example in the V5 Python Tutorials section.

Select the Code Viewer icon to open the Code Viewer window.

Screenshot showing a Python code snippet added to a window, illustrating a feature from V5 Python tutorials on the VEX Knowledge Base.

Notice that the print command will also be added to the Code Viewer window.


How text commands are deleted when blocks are deleted

Screenshot of the 'Delete print block' option in VEXcode V5, illustrating the process of removing a print block in Python programming tutorials.

Delete the [Print] block from the VEXcode V5 project.

Note: for more information on how to delete a block, view the Delete a Block article from the VEX Library.

Screenshot of deleted code from the code viewer in a Python tutorial, illustrating the removal of specific code segments in V5 category context.

Notice that the print command will also be deleted from the Command Viewer window.

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

Last Updated: