User forums > Help

File template

(1/1)

marmistrz:
I know that C::B can make use of project templates. But is it possible to create a file template, i.e. for any user-given string foo, create:

1. foo.h, which already has the include guards
2. foo.c, which includes "foo.h"

in the subdirectory src?

oBFusCATed:
The easiest way to do this is probably through scripting.

http://wiki.codeblocks.org/index.php/Scripting_Code::Blocks
http://wiki.codeblocks.org/index.php/Scripting_commands

Navigation

[0] Message Index

Go to full version