Developing With Visual Studio® Code (VS Code®)

Last modified by Microchip on 2025/07/14 13:00

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.

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.

CMake window

Debugging and Running

To build and run or debug a specific application, first set the launch target to the specific application.

launch target setting

Back to Top


Click the Debug or Launch button to build and run the application. 

Debug button

The application will run in a new window and you will be able to debug the code in the IDE.

application running on new window

Back to Top