PDA

View Full Version : auto load template



conradin
October 28th, 2012, 02:25 AM
Hi all,
I am trying to make a setup of using geany as my defualt compiler for arduino programing. One thing I think is annoying is having to start every program the same way, with:

void setup(){}

void loop(){}


what I want to do is write a start up script that can load a template with the basics of what i will need. How can i get that done?

Pinoy Tux
October 29th, 2012, 02:39 AM
Use the Templates folder instead. Create your boilerplate file and save it in your ~/Templates folder. When you want to create a new program, open the folder where you will save the file, right-click > Create Document > boilerplate-filename > rename > open.

Done.