Using the Code Viewer for Python in VEXcode EXP

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


How to Open the Code Viewer

Screen_Shot_2022-02-09_at_11.21.09_AM.png

Launch VEXcode EXP.

Screen_Shot_2022-02-09_at_11.22.45_AM.png

The platform defaults to the Blocks interface.

Screen_Shot_2022-02-09_at_11.22.54_AM.png

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

Screen_Shot_2022-02-09_at_11.24.14_AM.png

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.

Screen_Shot_2022-02-09_at_11.25.49_AM.png

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


How Text Commands are Added with Blocks

Screen_Shot_2022-02-09_at_11.27.44_AM.png

Add a [Print] block to the project.

Screen_Shot_2022-02-09_at_11.28.33_AM.png

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

Screen_Shot_2022-02-09_at_11.30.14_AM.png

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


How Text Commands are Deleted with Blocks

Screen_Shot_2022-02-09_at_11.32.09_AM.png

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

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

Screen_Shot_2022-02-09_at_11.33.28_AM.png

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