VS Code Extension for Mbed OS Projects.
Mbed for VS Code enables you to work with Mbed OS projects, handling library dependencies, target connection, build, debug and serial output.
-
Install the extension from within your IDE (search for 'mbed') or from an extension marketplace:
-
This will also install the following extensions:
- arm.armls - For working with assembly code.
- arm.device-manager - For detecting and managing connected devices.
- arm.embedded-debug - For deploying to your device and debugging programs.
- arm.environment-manager - For setting up a compiler.
-
Open an existing Mbed OS project or use the user interface to clone an existing example using git.
-
The user interface will help you recursively clone any dependant libraries (hydration) and install the Arm GNU toolchain (GCC) or Arm Compiler for Embedded toolchains.
-
You can then select your target and profile, build, deploy and debug your application.
This extension is intended to serve as a permissive, open-source reference for working with Mbed after the July 2026 end-of-life, offering an alternative to the standalone Mbed Studio application.
Pull requests may be accepted, but this primarily serves as a reference application for developing your own tools.
A working Node.js environment.
git clone https://github.com/ARMmbed/vscode-mbedIn the vscode-mbed folder:
## Install node dependencies
npm install## Build the extension
npm run build## Package the extension
npm run packageStart the default build task in VS Code.
Launch the default debug task in VS Code.