Using the Code Viewer for C++ in VEXcode V5

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


How to open the Code Viewer

VEXcode V5 application icon.

Launch VEXcode V5.

Default blocks project is shown in the VEXcode V5 Workspace.

The platform defaults to the Blocks interface.

VEXcode V5 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 C++ button is highlighted below.

The Code Viewer window defaults to the Python version of the blocks project. Select the C++ option.

Code Viewer is open and showing a C++ version of the Blocks project.

The Code Viewer window will then display the C++ 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 V5 blocks project is shown with a Print block added below the default When started block.

Add a [Print] block to the project.

VEXcode V5 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(VEXcode).

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


How text commands are deleted when blocks are deleted

The same VEXcode V5 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 V5 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: