User forums > General (but related to Code::Blocks)
Can I replace Hello world boilerplate code with my own boilerplate?
(1/1)
Steven Friedrich:
When I create a new project, CB automagicallly includes a main.c with Hello world.
Is this specified in Settings somewhere? I can't find it. I would like to configure CB to use my own template.c, template.h, or template++.cpp, template++.h.
Pecan:
You can right-click on any file in the project tree and chose "Remove file from project".
Then you can right-click on the project and choose "Add files" to add what files you like to the project.
Steven Friedrich:
Thanks for your reply. I have done that, but I would really like to make it automagic.
Pecan:
Once you have added the files you like, you can save the project as a template. Menu->File->Save project as template.
Then when you want to create your new project, choose your template instead of one of the CB basic projects from the Menu->File->New->From template.
Steven Friedrich:
Thanks. That works exactly as I hoped.
Navigation
[0] Message Index
Go to full version