Programming Arduinos with VS Code
If you want to program Arduinos, here are the steps to get started.
- Install the Arduino VS Code extension
- Open up an Arduino sketch, and select a board(as of 2023, it’s an Arduino Nano, but double check.)
You can now edit the code with all the features like autocomplete, formatting, etc. - If you haven’t already, use a cable to connect to the Arduino.
- Select the serial port.
- Open the Command Palette and search for
Upload
. It doesn’t matter if you pick theArduino
one or theArduino CLI
one, as long as it hasArduino
in the name.