Powered by Cookiecutter, the Mbed Devcontainer Template provides a framework for initializing Mbed projects with Devcontainer support seamlessly integrated.
- Install Cookiecutter: If you haven't already installed Cookiecutter, you can install it using pip as follows:
pip install cookiecutter
- Run Cookiecutter with the Template: To create a new Mbed project, execute the following command:
cookiecutter gh:KUCHITAKE/mbed-devcontainer-template
- Open the generated project folder in Visual Studio Code.
- Press F1 to open the command palette and select
Remote-Containers: Reopen in Container
. This will set up the Devcontainer environment for you.
You have two options to build your project:
- Using VSCode Tasks: If tasks are configured, you can run the build task in VSCode directly.
- Using Terminal Command: Alternatively, you can use
mbed-tools
to compile the project from the terminal:mbed-tools compile