Arduino 2 IDE default script location

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