Editing default file

I've edited the C:\Program Files\Arduino IDE\resources\app\lib\backend\resources\Examples\01.Basics\BareMinimum\BareMinimum.ino file as Administrator, and verified (by catting the file in terminal) that the content of the file does include my changes.

However, when I open a new sketch, I get the same old BareMinimum file that's included when you first install the IDE.

Any suggestions?

Thanks

  • Suggest you don’t edit it, instead make:

myBareMinimum.ino

Ok, but how do I get the IDE to open that file instead?

Check the DTM to see if the file is changed after your edits. I suspect the entire file was replaced.
I didn't try that method since I know it will get overwritten, rather I have a sketch I always load first called Dummy. If I want to create a new sketch, it's just Cmd-N then Save As.

Have a look at UkHeliBob's comment in this thread:

EDIT: at least that was the theory. No longer seems to work?

1 Like

I just tried that and it didn't work. I created folder default in the sketchbook folder then placed the default.ino (my version) in the default folder. I still get the old basic sketch.

Yes, just tested it as well following your comment. You are right. It doesn't work (using version 2.3.4). I got the original default sketch as well. Tried both the user and workspace tab.

There are more steps than that. Did you carefully follow all the steps provided in the linked post?:

I just tried and it works for me.

Yes I did, even making sure its an absolute path and closing the Settings tab (I guess it has been renamed?) using the 'X' and closing with File>Quit. Ctrl-N or New Sketch from the menu still shows the original default sketch.

I didn't see that post, but I found the place to do it anyway. Thanks.

@BitSeeker please tell me the exact value you set in the "Sketch: Ino Blueprint" setting. It might be caused by something about the path.

Got it working! Not really sure what I did wrong but my path is quite long so maybe had a typo. Anyway, cleared the path, closed to save the empty field, then went through the process again. Also changed the path I had in Preferences -> Sketchbook location to an absolute path. I am working on Linux and the original had a symlink in it. Not sure if that made any difference, but when I started the IDE from the command line, there were warnings in the output in the terminal about the path not matching. Setting it to the absolute path got rid of the warnings.

Lets hope it works for the OP.

Great news!