Code::Blocks Forums

User forums => Help => Topic started by: marmistrz on April 23, 2016, 11:09:21 am

Title: File template
Post by: marmistrz on April 23, 2016, 11:09:21 am
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?
Title: Re: File template
Post by: oBFusCATed on April 23, 2016, 01:51:46 pm
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