Visual Studio Code (VS Code) is a free code editor that runs on the Windows, macOS, and Linux operating systems. This article is an overview of installing Visual Studio Code and the VEX Visual Studio Code Extension for macOS.
Installing VS Code
Open an internet browser and navigate to https://code.visualstudio.com/, the homepage of the VS Code Website. Select the 'Download for macOS' button to start to download the VS Code application for macOS. Wait for the download to finish.
Once the download is complete, open the Finder by selecting the Finder icon in the Dock.
Find the VSCode-darwin-universal.zip file in the Downloads folder by selecting Downloads in the Favorites sidebar.
Double-click on the VSCode-darwin-universal.zip file to extract the archived contents if it hasn't been automatically unzipped. The VS Code application will appear in the Downloads folder.
Select and drag the VS Code application to the Applications folder.
Select the Launchpad icon in the Dock.
Click on the VS Code icon to launch Visual Studio Code.
VS Code is installed and launched on the computer.
Installing the VEX Extension, C/C++ Extension, and Python Extension
To create projects using the VEX platform in VS Code, we need to install the VEX Extension, which supports C/C++ and Python programming languages.
To enable Intellisense/Linting for both C/C++ and Python, the C/C++ Extension and the Python Extension will need to be installed. The VEX VS Code Extension will set up VEX projects to work with these extensions automatically.
Select the Extension icon in the VS Code Activity Bar.
Type “VEX Robotics” in the search bar. The VEX Robotics Extension will appear in the Sidebar below. Select Install.
Once the installation is complete, Install will be replaced with a Manage Gear button, both the VEX Robotics Extension and the VEX Robotics Feedback Extension will be installed, and the VEX icon will appear in the VS Code Activity Bar.
Type “C/C++” in the search bar. The Microsoft C/C++ Extension will appear in the sidebar below. Select Install.
Once the installation is complete, Install will be replaced with a Manage Gear button.
Type “Python” in the search bar. Select Install. Wait for the installation to finish.
Once the installation is complete, Install will be replaced with a Manage Gear button
The VEX Extension, the VEX Robotics Feedback Extension, the C/C++ Extension, and the Python Extension are installed and can be found under the 'INSTALLED' category in the Sidebar.