Template with developer experience setup. PlatformIO + Cpp + CI/CD + Linter + Formatter.
If the codebase using this template is not a library, remove the
library.json
file and the.github/workflows/publish.yml
file.
- Clone the repository
git clone https://github.com/platformio/platformio.cpp.dx.template.git
- Install PlatformIO Core (CLI)
pip install platformio
- Install PlatformIO IDE (VSCode with PlatformIO Extension)
- Install the recommended extensions
Look at the .vscode/extensions.json
file to see the recommended extensions.
When you open the project in VSCode, it will automatically show the extensions to install.
- Run the commands to install the dependencies and build the project
pio install
pio run -e esp32dev --target compiledb