PlatformIO
Integrate PlatformIO into Visual Studio Code on top of PlatformIO Core.
Features
- Build PlatformIO project specified in Project Configuration File platformio.ini
- Upload firmware to devices specified in Project Configuration File platformio.ini
- Open Serial Monitor
- Search for library in PlatformIO Library Registry
Prerequisites
- Install PlatformIO Core
Setup
-
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.
Usage
- 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
- Search for library: Click the
Library
item in the Status Bar at the bottom, or pressF1
and then select/typePlatformIO: Search Library
, then type the query to search for library. Refer to the User Guide for the query syntax.
Telemetry data
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
}
Change Log
See Change Log here
Issues
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.