Using the Code Viewer 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 C++ version of the Blocks project. The menu is highlighted.

The Code Viewer window displays the C++ version of the Blocks project.

Code Viewer menu is opened when connected to a 2nd gen Brain. The Code Viewer still defaults to show C++, but below there is a Python button that is highlighted next to the C++ button.

If using a VEX IQ (2nd generation) Brain, you can also select "Python" from the bottom menu to see 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 when blocks are added

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 C++ version of the project. The line of code that corresponds to the Print block is highlighted, and the command reads Brain.Screen.print(Hello).

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


How text commands are deleted when blocks are deleted

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 VEX Library.

Code Viewer menu is open and is showing a C++ 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: