Handling of sketches in IDE 2.2.1

I may be missing something here.
I open a sketch with ide 2.2.1.
I finish with the sketch and do not save it.
I can't get ide 2.2.1 to "forget" about the sketch, it is there when I restart ide 2.2.1.
In the submenu I found the delete entry, that deletes it and deletes it from disk and ends ide 2.2.1.
All I'm trying to do is to have the ide 2.2.1 stop displaying the sketch when I start it.
Sort of like telling it to forget about the sketch.

I moved your topic to an appropriate forum category @jdeckerus.

In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

Hi @jdeckerus. Similar to many other modern applications, Arduino IDE opens the saved sketches you had open at the time you exited the previous IDE session. I'm not sure why it bothers you which sketch it opens, but if you don't want it to open this specific sketch, you can exit the IDE while some other sketch is open.

I'll provide an example of a procedure you can follow:

  1. Start Arduino IDE.
  2. Select File > New Sketch from the Arduino IDE menus.
    A new Arduino IDE window will open.
  3. Close all other Arduino IDE windows.
  4. Select File > Save As... from the Arduino IDE menus.
  5. Save the sketch to any convenient location and name.
  6. Select File > Quit from the Arduino IDE menus.
  7. Start Arduino IDE.

The sketch you saved at step (4) of the instructions above should now open instead of whatever that other sketch was that offended you.

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