Code::Blocks Forums

User forums => Help => Topic started by: buzibiho on August 13, 2021, 09:22:41 am

Title: File template question
Post by: buzibiho on August 13, 2021, 09:22:41 am
Hi,
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 question
Post by: BlueHazzard on August 13, 2021, 11:06:57 am
You probably could create a wizard script...

You want to generate two files?
Title: Re: File template question
Post by: huycan on August 15, 2021, 12:37:58 pm
I usually use the New class template to create the two files... (albeit the files will be .h and .cpp, not .c as you want)