Integrate PlatformIO into Visual Studio Code on top of PlatformIO Core.
- Build PlatformIO project specified in Project Configuration File platformio.ini
- Upload firmware to devices specified in Project Configuration File platformio.ini
- Open Serial Monitor
- Install PlatformIO Core
-
Use existing project
If you have an existing PlatformIO project, open the project folder directly in VS Code
-
Create new project
In terminal, run
platformio init --board <your_board_identifier>
to initialize a new PlatformIO project, then open the project folder in VS Code. Refer to User Guide forplatformio init
command. For how to find Board Identifier, you could refer to this.
- Build PlatformIO project: use shortcut
Ctrl+Alt+B
, or pressF1
and then select/typePlatformIO: Build
, or right click the Text Editor and then clickPlatformIO: Build
in context menu
- Upload firmware to devices: use shortcut
Ctrl+Alt+u
, or pressF1
and then select/typePlatformIO: Upload
, or right click the Text Editor and then clickPlatformIO: Upload
in context menu
- Open Serial Monitor: use shortcut
Ctrl+Alt+S
, or pressF1
and then select/typePlatformIO: Open Serial Monitor
, or right click the Text Editor and then clickPlatformIO: Open Serial Monitor
in context menu
By default, anonymous telemetry data collection is turned on to understand user behavior to improve this extension. To disable it, update the settings.json as below:
{
"platformio.enableTelemetry": false
}
See Change Log here
Currently, the extension is in the very initial phase. If you find any bug or have any suggestion/feature request, please join the chat on Gitter or submit the issues to the GitHub Repo.