Arduino IDE 2.0.0-rc7 available for download!

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

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

:exclamation: 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:

https://raw.githubusercontent.com/arduino/tooling-project-assets/main/other/clang-format-configuration/.clang-format

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:

  1. Select File > Preferences... from the Arduino IDE menus.
  2. Select "Dark (Arduino)" from the "Theme" menu.
  3. 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:

https://github.com/arduino/arduino-ide

1 Like

7 posts were split to a new topic: "Verify", "Upload", Library & Boards Manager not working

Just a thumbs-up. My previous version was rc5 and I stopped using it because of the extreme long startup time and the issues related to auto-format. I see some massive improvements there.

I will start testing again.

2 Likes

2 posts were split to a new topic: Neither the board manager nor libraries work

I'm already seeing the benefits. It's such an improvement to see the 'board not connected' extinguish when reconnecting a board - that didn't happen before. Also, I hope I don't speak too soon but the monitor no longer skips data. Many, many thanks to the development team. I already feel much more confident in the platform.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.