Using the Code Viewer for Python in VEXcode IQ

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


How to Open the Code Viewer

VEXcode IQ application icon.

Launch VEXcode IQ.

Default blocks project is shown in the VEXcode IQ Workspace.

The platform defaults to the Blocks interface.

VEXcode IQ Toolbar with the Code Viewer icon highlighted to the left of the Devices icon.

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

Code Viewer menu is open and showing a Python version of the Blocks project. The Python button is highlighted below.

The Code Viewer window will open. Select the "Python" button at the bottom of the Code Viewer window to display the Python version of the Blocks project.

Code Viewer menu with the right arrow icon highlighted on the Toolbar. This icon can be selected to close the menu.

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


How Text Commands are Added with Blocks

VEXcode IQ blocks project is shown with a Print block added below the default When started block.

Add a [Print] block to the project.

VEXcode IQ Toolbar with the Code Viewer icon highlighted to the left of the Devices icon.

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

Code Viewer menu is open and is showing a Python version of the project. The line of code that corresponds to the Print block is highlighted, and the command reads brain.screen.print(VEXcode).

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


How Text Commands are Deleted with Blocks

The same VEXcode IQ blocks project, now with an arrow indicating that the Print block should be discarded by dragging it to the Toolbox.

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

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

Code Viewer menu is open and is showing a Python version of the project. The line of code that corresponded to the Print block is now gone, and just the code for the When started block is highlighted.

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: