For anyone that is looking for an alternative to the Arduino IDE, there is now an Arduino plugin for Visual Studio Code, developed by Microsoft.
It is a much, much better IDE than Arduino, easily supports big projects, has very helpful code completion, etc. Here’s the link, though you can install it easily from within VS Code.
You need to have the regular Arduino IDE installed, since it relies on many of the same libraries. I had it up and running in a matter of minutes. There is a handy little toolbar across the bottom of the screen that lets you define the board type, programmer, etc.
There are verify and upload buttons, just as in the Arduino IDE and they work the same. During upload you’ll see the Arduino splash screen.
A couple of small gotchas:
- You need to define a serial port, even if you are using the USBTinyISP and don’t need it. Any port will do.
- It will warn you about missing libraries. You might need to manually add #include <blinklib.h> to some sketches, and then define the include_path, VS Code will propose a fix.
Here’s the Arduino extension page in VS Code, you can install it directly from the extension marketplace.
Here’s an example, you can see how the Board Manager is supported, and you can select your board type.
Here’s BGA’s awesome Hexxagon, you can see how the programmer and the board type can be selected directly on the status line: