A new release candidate of Arduino IDE 2.0.0 is now available.
If you are using a recent version of the IDE, you will get an auto-update offer simply by starting the IDE.
Otherwise, they are available for download here:
https://www.arduino.cc/en/software#experimental-software
This release provides some very nice advancements and fixes.
Thanks so much to the forum community for all the valuable testing and feedback that has helped us greatly in identifying and investigating these bugs and enhancements.
Fix bugs that could result in loss of work on sketch
https://github.com/arduino/arduino-ide/pull/893
Previously, under certain conditions the IDE window would close without asking for confirmation when this would result in loss of work in the sketch that was either unsaved or staged in a temporary folder.
https://github.com/arduino/arduino-ide/pull/939
Previously, unsaved sketch changes were not written to disk during a "Save As..." operation.
Fixes for several bugs with Serial Monitor
https://github.com/arduino/arduino-ide/pull/982
- Interference with uploads (issues
#586
and#726
) - Inability to connect Serial Monitors of multiple IDE windows to different ports
- Unexpected "Not connected" banners
- Inability to send data from Serial Monitor
Fixes for several bugs with "Auto Format"
https://github.com/arduino/arduino-ide/pull/991
Previously, under certain conditions the Arduino IDE's "Auto Format" was excessively slow, non-functional (#396
, #973
), or deleted sketch content (#543
, #746
).
Support for globally customizing the "Auto Format" behavior
https://github.com/arduino/arduino-ide/pull/1019
Although it is always recommended to use the official standardized code formatting style provided by the default settings of the Arduino IDE's "Auto Format" feature, you should have the freedom to configure it differently according to your preferences.
This was already possible to do by adding a formatter configuration file to the sketch folder, which will be the best option when collaborating on a project with others. However, it is also convenient to have the option of setting a global custom formatter configuration, to be used with all sketches.
I'll provide instructions for using both the sketch local as well as global formatter configuration features:
Click to see instructions
Global scope
If you add a .clang-format
configuration file to either of the following locations, the Arduino IDE will always use it instead of the Arduino default configuration:
Windows
C:\Users\<username>\.arduinoIDE\
Or:
C:\Users\<username>\AppData\Local\Arduino15\
Linux
~/.arduinoIDE/
Or:
~/.arduino15/
macOS
~/.arduinoIDE
Or:
~/Library/Arduino15/
Sketch scope
If you add a .clang-format
configuration file to the root of a sketch, the Arduino IDE will use that configuration when formatting that sketch. This file has precedence over a global formatter configuration file.
Configuration
The documentation for the ClangFormat configurations is here
Clang-Format Style Options — Clang 14.0.0 documentation
Please note that a custom configuration file completely overrides the Arduino default configuration, rather than merging with it. Any configuration option you don't set in your custom file will be set to the ClangFormat default value.
Here is Arduino's default configuration file in case you would like to use it as a base for your custom configuration:
Feel free to open a new topic here on the forum if you have questions or problems while using the formatter configuration feature.
Improve startup and new sketch creation time
https://github.com/arduino/arduino-ide/pull/1018
New "Dark (Arduino)" IDE theme
https://github.com/arduino/arduino-ide/pull/991
This theme was designed to provide a "dark" option which retains the unique Arduino design style.
If you would like to try it out, just do this:
- Select File > Preferences... from the Arduino IDE menus.
- Select "Dark (Arduino)" from the "Theme" menu.
- Click the OK button.
Fix duplicated editor tabs
https://github.com/arduino/arduino-ide/pull/1012, https://github.com/arduino/arduino-ide/pull/1024
Previously, certain actions could result in sketch tabs being duplicated unexpectedly in the Arduino IDE.
Full changelog here:
https://github.com/arduino/arduino-ide/releases/tag/2.0.0-rc7
If you have any questions or feedback please post here in the Arduino IDE 2.x's dedicated forum category:
https://forum.arduino.cc/c/software/arduino-ide-2-0-beta/93
If you want to see the list of known issues, work in progress, submit a formal report, or contribute to development, the IDE 2.x source code is hosted in this public repository: