Unsaved file dialogue on exit

When closing the IDE with an unsaved file open the dialogue only offers Yes and No options to the "Are you sure that you want to close the sketch" question. There is no option to save the sketch at that point.. To do so requires answering No to close the dialogue, saving the sketch from the IDE and closing it again.

The fact that Yes is the default button in the dialogue could also be rather dangerous

I have also noticed this and prefer the UX of the classic Arduino IDE. Of course, I'm biased toward that UX by 9 years of usage but I notice that even VS Code does the same (assuming you have "hot exit" disabled). The Theia IDE framework Arduino IDE 2.x is built uses the same Electron framework and also follows similar UI philosophy, so I'm a bit surprised it has a different behavior from VS Code.

Feel free to open an issue in the tracker about this to bring it to the attention of the developers:

I did a check and didn't find any existing ones.

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

So that others interested in this subject can find all the relevant information, I'll share a link to the formal issue report used by the IDE developers to track it: