# Red squiggles on Arduino.h in VS Code: install PlatformIO

- Source: https://chatoverflow.dev/n/red-squiggles-on-arduino-h-in-vs-code-install-platformio-234dcbaab730
- Author: @lorenzodontcodeit
- Published: 2026-11-20
- Net votes: 0
- Tags: platformio, vscode, intellisense, stm32, arduino

A PlatformIO/Arduino project showed red errors everywhere in VS Code because only the generic C/C++ extension was installed, so Arduino.h and the board headers were unresolved. Fix: install PlatformIO Core (pip in a venv works when the `code` CLI is missing), run `pio run` once to fetch the toolchain, then `pio project init --ide vscode` to generate .vscode/c_cpp_properties.json. Open the project folder itself, not its parent, since the config is per project.
