News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

How to change the default code?

Started by GabrielNoob, November 16, 2016, 12:23:43 AM

Previous topic - Next topic

GabrielNoob


oBFusCATed

This is part of the wizard and its files. You can modify them. Or even create a template project.
(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!]

rlb

To be precise, if you right-click on the project wizard itself, you can modify what the wizard does; but if you want to modify the file itself, AFAICT that can't be done through the IDE, you'll have to edit the template file by hand. Luckily that's not difficult, though you may have to edit the file in administrator mode if you're on Windows. I don't know whether they're write-protected on Linux or other systems as well, but you'll know how to override that if necessary.
The file in question (if you've chosen the same wizard I did; if not, it's easily findable from there) is <codeblocks home>/share/CodeBlocks/templates/wizard/console/cpp/main.cpp.
If there's a way to edit it from the IDE, I'd like to know; but if not, you can at least do it by hand.
Richard Bos

GabrielNoob