User forums > Using Code::Blocks
Default main.cpp
(1/1)
Heken:
Is there a way to change the default layout of main.cpp
--- Code: ---#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
return 0;
}
--- End code ---
to something else so I don't have to retype what's required for my C++ class over and over?
sorinev:
I haven't tried it myself, but have you maybe tried Settings -> Editor -> Default Code?
oBFusCATed:
Won't help...
Either modify the template you're using (right click on it in the wizard -> edit script) or save a project as template.
Jenna:
That does not work for wizard-created projects.
But you can create a project that fits your needs and save it as user-template ("File -> Save Project as template") and then use it with "File -> New -> from template".
Heken:
--- Quote from: jens on August 28, 2013, 10:37:49 pm ---That does not work for wizard-created projects.
But you can create a project that fits your needs and save it as user-template ("File -> Save Project as template") and then use it with "File -> New -> from template".
--- End quote ---
That worked, ty.
I just had it saved in notepad in the main folder list, but this works too :P
Navigation
[0] Message Index
Go to full version