Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
Help
»
File template
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: File template (Read 3565 times)
marmistrz
Multiple posting newcomer
Posts: 18
File template
«
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?
Logged
oBFusCATed
Developer
Lives here!
Posts: 13406
Re: File template
«
Reply #1 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
Logged
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
Help
»
File template