PDA

View Full Version : Code::Blocks - How do I automatically add headers/other things to all new files?



linkmaster03
December 13th, 2008, 02:47 AM
How can I set Code::Blocks to automatically add certain headers or declarations to all new source files? Like when I start it up, it is already there. Things like '#include <iostream>' or 'using namespace std;'.

jpkotta
December 13th, 2008, 03:40 AM
RTFM: Sect. 1.10.1. Default Code

http://www.codeblocks.org/en-docs-wrapper

Caduceus
December 13th, 2008, 03:42 AM
You could make a file with:



#include <iostream>
[..Other headers..]
using namespace std;

int main()
{
return 0;
}


Open it, modify as necessary then save as. If there's a quicker way I'd like to know as well.

linkmaster03
December 13th, 2008, 04:41 AM
RTFM: Sect. 1.10.1. Default Code

http://www.codeblocks.org/en-docs-wrapper

:oops: Thank you!