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.
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.
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.
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.
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.