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:
Code
#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
Quote
Hi, 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..