Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: bradleyd on June 16, 2008, 05:00:52 PM

Title: Templates
Post by: bradleyd on June 16, 2008, 05:00:52 PM
Hello,

I was wondering if there was a way to start an empty c++ file in CodeBlocks that would use a template. For example it would contain:
#include <iostream>
using namespace std;


for every empty file or c++ source file I start?

Thanks for your time,

Brad
Title: Re: Templates
Post by: McZim on June 16, 2008, 08:20:47 PM
Hi, no, use this only if you need that!!!
Title: Re: Templates
Post by: bradleyd on June 16, 2008, 08:32:42 PM
I am sorry, but I did not get your response?
Title: Re: Templates
Post by: McZim on June 16, 2008, 09:45:25 PM
why?
Title: Re: Templates
Post by: bradleyd on June 16, 2008, 10:14:07 PM
QuoteHi, no, use this only if you need that!!!
use what?
Title: Re: Templates
Post by: killerbot on June 16, 2008, 10:26:49 PM
an include of iostream,  very often you will not need that.
Title: Re: Templates
Post by: bradleyd on June 16, 2008, 10:40:19 PM
oh, ok. Sorry about that. What about the rest of the template?
Title: Re: Templates
Post by: Jenna on June 20, 2008, 09:53:56 AM
"Settings -> Editor -> Default Code" ?
Title: Re: Templates
Post by: bradleyd on June 20, 2008, 02:24:19 PM
thanks that worked.
take care..