Programming Arduinos with VS Code
If you want to program Arduinos, here are the steps to get started.
- Install the Arduino VS Code extension. Always use the bundled CLI.
- Open up an Arduino sketch, and select a board(as of 2023, it’s an Arduino Nano, but double check.) You may need to use the Board Manger (can be found in the Command Palette) to install the board.
You can now edit the code with all the features like autocomplete, formatting, etc. - Install any necessary libraries with the Library Manager (can also be found in the Command Palette).
- 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.