Coding Your ESP32 Firmware with Cursor (or VSCode) + PlatformIO

Just landed here, can confirm this worked on an M4 Mac Mini:

  1. Download the vscode-cpptools .vsix file for your system (ARM64 for MacOS in my case) from Releases · microsoft/vscode-cpptools · GitHub
  2. Open Cursor and install via Shift+CMD+P → Extensions: Install from VSIX
  3. Get the PlatformIO VSIX from Releases · platformio/platformio-vscode-ide · GitHub
  4. Install same a 2.
  5. Restart Cursor - done

Probably some more editor stuff to set up, but this got me building and uploading a PlatformIO Project to an ESP32-C3 from Cursor in under five minutes.