To expand on sterretje's answer: File > New adds the text from the BareMinimum example sketch to the newly created sketch. The Arduino IDE doesn't allow you to save edits to example sketches so you use a text editor to change it. The easiest way to find the BareMinimum example is:
File > Examples > 01.Basics > BareMinimum
Sketch > Show Sketch Folder
Open BareMinimum.ino in a text editor.
Make your desired changes.
Save the file
Note that the changes will be lost every time you update to a new version of the Arduino IDE. You might save a copy of the file in a safe place to make it easy to redo your changes after each update.
I am so sick of being reminded " // put your setup code here, to run once:" &c.
On the MacOS, the minimum sketch (and all examples) are in the application itself: click it open with the control key held and "Show Package Contents", navigate to
Are you saying the "Show sketch folder" technique I described in my previous reply doesn't work on macOS?
pert:
The easiest way to find the BareMinimum example is:
File > Examples > 01.Basics > BareMinimum
Sketch > Show Sketch Folder
Open BareMinimum.ino in a text editor.
Make your desired changes.
Save the file
Note that the changes will be lost every time you update to a new version of the Arduino IDE. You might save a copy of the file in a safe place to make it easy to redo your changes after each update.
Ha! I looked at what you were doing and just passed it off. (phtt, PC guy) I read your next post and thought, hmm. Really? So I just went and actually looked.
You know what? Your right, your way works on Macs.