How can I edit the New Sketch file?

Hello,

every time i start a new project I use the same phrases again.

So is there a way to edit the standard code

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

that is shown when you open a New Sketch?

Chris

It uses the File->Examples->01.Basics->BareMinimum sketch.

Thank you :slight_smile:

You'll find that editing the BareMinimum sketch is harder than you expect unless you're on XP. On later versions of windows, there are varying levels of protection on stuff under program files (behavior is not the same on each version of windows), which is where the Arduino IDE stores the example sketches. There's information on how to deal with that online, but don't be surprised :wink: