Matter support in Visual Studio Code (VS Code) is now open to all developers.
MCUXpresso extension for VS Code v24.12.71 integrates the Matter toolchain for development on Windows, macOS and Linux.
It can be installed by visiting Microsoft’s Marketplace for VS Code.
Pigweed is used for easier automation of building, testing, and linting GN and CMake projects. Matter uses GN, so Pigweed is used by the maintainers of the project. Complete the following to allow the Matter Bootstrap to properly modify/install the repository.
Launch a Terminal in Administrator mode to allow operations to complete successfully.
REG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\AppModelUnlock /t REG_DWORD /v AllowDevelopmentWithoutDevLicense /d 1 /f\""
regedit
or by running the following command as an administrator:REG ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1 /f
git config --global core.symlinks true
For more information on these settings visit Get started with Pigweed - Pigweed
Microsoft allows users to quickly install VS Code from https://code.visualstudio.com/download. The link allows the user to select the appropriate download for their OS.
The following instructions are for a Windows installation. However, most of the following steps also apply to Mac and Linux users.
It can be helpful for new users to directly install VS Code and the NXP extension. This can be done by sharing one of two links:
If VS Code exists on the system, the user will be taken to the NXP MCUXpresso for VS Code extension in the Microsoft Marketplace. If VS Code is NOT installed on the system the user will be guided through the install of VS Code.
At this point the VS Code application should be installed on the laptop.
The user can install or update the MCUXpresso for VS Code extension from within VS Code. The following steps outline how. A short clip is included to show the steps.
At this point the VS Code application now includes the NXP MCUXpresso extension.
It is now necessary to install other tool dependencies to properly use VS Code for MCUXpresso, Zephyr and/or Matter.
NXP provides the MCUXpresso Installer utility to simplify properly meeting these tool dependencies. The following steps list how to use the installer for a Matter system. A short clip is included to show the steps.
At this point the VS Code application now includes the NXP MCUXpresso extension, and the laptop has any other tools required to begin Matter installation.
The import process can take ~30 minutes depending on network bandwidth and IT software.
NOTE: This is similar amount of time when using CLI in a terminal.
The MCUXpresso for VS Code extension includes an Import Example wizard that simplifies adding Matter projects to a workspace.
The following instructions show how to import a project from the NXP Matter repository. A short clip is included to show the steps.
At this point there is a Matter project in the workspace. The project can be explored with the provided project properties and file explorer views.
Building the project is the final step for Getting Started with a Matter project in VS Code. The extension has properly setup the project toolchain and will build successfully. The NXP extension reduces the setup time by not importing the SDK for all supported boards. The board SDK is automatically imported/cloned when it is not located on the 1st build for a board. Successive projects for the same board will not require this additional step/delay.
The following steps show how to build a matter project in the workspace. A short clip is included to show the steps.
This exercise on "Getting Started with Matter" is completed. At this point the Matter project imported to the workspace was successfully built.