Installation

To get the full experience with the STM32 extension in Visual Studio Code, follow these steps:

  1. Open Visual Studio Code.

  2. Navigate to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window.

  3. Search for “STM32” in the Extensions Marketplace.

  4. Click on the “Install” button.

Screenshot of the STM32CubeIDE for Visual Studio Code extension in marketplace showing the "install" button.

Cherry-Picking Extensions If you prefer to install only specific parts of the STM32 extension, you can cherry-pick individual extensions that the main extension depends on. Click “Install” on each extension you wish to add to your development environment. This approach allows you to customize your setup by selecting only the extensions you need.

If you want to use the CLI to install a specific version, read the Installing a Specific Bundle Version chapter.

Note

If you are migrating from STM32 VS Code Extension 2.0 , read the Migrating from VS Code extension 2.x to 3.x chapter.

If you are new to STM32 development in Visual Studio Code , read the First project creation chapter to get started with your first project.

By following these steps, you can easily set up the STM32 extension in VS Code to suit your development needs.

Install drivers

Note

For the current release version the user must install debug probe drivers manually since this requires administrator privileges. This will be improved in future updates.

When setting up STM32CubeIDE for Visual Studio Code, installing the necessary drivers is crucial for proper communication between the development board and the computer. Below are detailed instructions for installing drivers for both ST-Link and SEGGER J-Link.