Using the Context Menu in VEXcode V5 Python

Right-clicking in VEXcode V5 leads to many options to help you with your Python coding. 


Opening the Context Menu

VEXcode V5 with a Python project opened in the workspace. The programming area has been right clicked to open the context menu. The context menu has 12 options and they read Command Help, Change All Occurences, Font Increase, Font Decrease, Font Reset, Add Line Comment, Remove Line Comment, Toggle Line Comment, Cut, Copy, Paste, and Command Palette.

Right-clicking on a command or in the programming area will open the Context Menu

VEXcode V5 Python context menu is shown and the keyboard shortcuts next to some of the options are highlighted. In this macOS example, the following shortcuts are available: Command and F2 for Change All Occurrences, Command and Up Arrow for Font Increase, Command and Down Arrow for Font Decrease, Command and X for Cut, Command and C for Copy, Command and V for Paste, and F1 for Command Palette.

Notice the shortcuts on the right side of the Context Menu. These will match with your keyboard depending on your operating system. Here a macOS device is being used.

Changing Font Size

VEXcode V5 Python context menu is shown and the Font Increase option is highlighted. Font Increase is the third option in the menu, and its keyboard shortcut Command and Up Arrow can be used.

Sometimes it can be hard to read the text commands because the font is too small. Use the 'Font Increase' option to make the commands in the workspace larger.

VEXcode V5 Python context menu is shown and the Font Decrease option is highlighted. Font Decrease is the fourth option in the menu, and its keyboard shortcut Command and Down Arrow can be used.

To make the font smaller, use the 'Font Decrease' option.

VEXcode V5 Python context menu is shown and the Font Reset option is highlighted. Font Reset is the fifth option in the menu.

If you want to return to the default font size in the workspace, select the 'Font Reset' option

Line Comments

VEXcode V5 Python context menu is shown and three options are highlighted: Add Line Comment, Remove Line Comment, and Toggle Line Comment. These options are the sixth, seventh, and eighth options in the menu.

Selecting one of the 'Line Comment' options will allow you to change a command to a comment or vice versa. This is useful if you want to momentarily disable a command and test your project again.

In the video shown here, each of the three line commands are used to edit what is a comment in the project.

Cut, Copy, and Paste

VEXcode V5 Python context menu is shown and three options are highlighted: Cut, Copy, and Paste. These options are the ninth, tenth, and eleventh in the menu. These options can be used with the keyboard shortcut of Command and their respective keys, X, C, and V.

Using the options in the Context Menu or the same traditional keyboard shortcuts, you can cut, copy, and paste text in your project. This is useful when you want to move code from one location to another or edit large chunks of code in your project.

Command Help and Changing Occurrences

By right-clicking a command and then selecting 'Command Help' in the Context Menu, the Help information will appear as shown in this video.

Changing occurrences is helpful when you want to bulk change a set of commands in your project. In the example shown here, the drive_for command was incorrectly typed, then copy and pasted 3 additional times. By right-clicking on the first command to open the Context Menu, you can select 'Change All Occurrences' and it will select all occurrences of that typed command. Then you can edit the commands as shown in this video. 

Note: Occurrences must exactly match. If one of the drive_for commands, in this video, was spelled correctly, it would not be highlighted.

Command Pallet

The Command Pallet opens all of the available commands and shortcuts that can be used in the workspace. Open the Command Pallet by right-clicking then selecting 'Command Pallet', as shown in this video.

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

Last Updated: