Arduino 2 IDE default script location

I was hoping someone could point me in the direction of the bare minimum (....\Arduino\examples\01.Basics\BareMinimum.ino) file for Arduino 2 IDE please?

Are you by any chance aiming to modify it so that when you do File/New the modified version is presented to you ?

Yes indeed, if possible

I usually have some notes in the form of comments to remember data types, and some other debugger garbage I like to add whenver possible

Things have changed and the default new sketch is now not BareMinimum but you can specify which sketch is used

See Arduino IDE 2.0.1 is now available , specifically this section

Allow customization of default sketch

arduino/arduino-ide#1559, arduino/arduino-ide#

When a new sketch is created, Arduino IDE populates it with the bare minimum empty setup and loop functions.

Some users may wish to adjust this code. That is now possible by specifying the path to a file containing the custom content in the advanced settings:

  1. Press the Ctrl+Shift+P keyboard shortcut (Command+Shift+P for macOS users) to open the "Command Palette".
  2. Select the "Preferences: Open Settings (UI)" command from the menu.
  3. A "Preferences" tab will now open in the IDE. In the "Search Settings" field, type arduino.sketch.inoBlueprint
  4. Add the path to the file containing your custom new sketch content in the field under the "Sketch: Ino Blueprint" setting.
  5. Click the X icon on the "Preferences" tab.
  6. Select File > Quit from the Arduino IDE menus.
  7. Start the Arduino IDE.
5 Likes

Thank you very much HeliBob.

Until this was implemented you could not easily change the default new sketch because although it was exactly the same as BareMinimum it was generated by the IDE rather than copying BareMinimum as had previously been the case

Absolutely right. In IDE 1 I had to find the BareMinimum sketch and edit it with a different editor, then save. I just tried what you suggested in IDE 2 and it worked flawlessly. Which is cool because I have already changed my sketchpad location. Worked a treat. Thx again HeliBob.

It certainly works and I made my own blueprint sketch as soon as the facility became available.

I have to say though that it would have been much simpler if the original mechanism had been retained or if the presence of a sketch named blueprint.ino in the sketchbook folder caused it to be used as the default new sketch

1 Like

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