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

Default main.cpp

Started by Heken, August 28, 2013, 10:02:18 PM

Previous topic - Next topic

Heken

Is there a way to change the default layout of main.cpp

#include <iostream>

using namespace std;

int main()
{
    cout << "Hello world!" << endl;
    return 0;
}


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.
(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!]

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".

That worked, ty.

I just had it saved in notepad in the main folder list, but this works too :P