Developing With Visual Studio® Code (VS Code®)
Introduction
Microsoft® VS Code® can used be to develop Microchip Graphics Suite (MGS) cross-platform GUI applications on Linux® . It provides an IDE to create and edit source files as well as run and debug the application on a Linux PC.
This page provides information on how to use VS Code for MGS GUI development.
Install VS Code for Linux (Ubuntu®)
Refer to the "Visual Studio Code on Linux" page for the steps.
Open the MGS Cross-Platform SDK on VS Code
Run the following commands to open the SDK in VS Code.
cd mgs_xp
code .
The SDK will open in VS Code and you will be able to explore the sdk project files.
Install the Required Extensions
Open the Extensions window (Ctrl + Shift + X) and install the following extensions:
- C/C++
- C/C++ Extension Pack
- CMake
- CMake Tools
Configure CMake
Open the CMake window and set the Configure kit option to GCC 13.2.0 x86_64-linux-gnu to build the applications for the Linux desktop.
Debugging and Running
To build and run or debug a specific application, first set the launch target to the specific application.
Click the Debug or Launch button to build and run the application.
The application will run in a new window and you will be able to debug the code in the IDE.