Author Topic: Default main.cpp  (Read 4084 times)

Offline Heken

  • Single posting newcomer
  • *
  • Posts: 2
Default main.cpp
« on: August 28, 2013, 10:02:18 pm »
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;
}

to something else so I don't have to retype what's required for my C++ class over and over?

Offline sorinev

  • Multiple posting newcomer
  • *
  • Posts: 61
Re: Default main.cpp
« Reply #1 on: August 28, 2013, 10:32:35 pm »
I haven't tried it myself, but have you maybe tried Settings -> Editor -> Default Code?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Default main.cpp
« Reply #2 on: August 28, 2013, 10:36:10 pm »
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!]

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Default main.cpp
« Reply #3 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".

Offline Heken

  • Single posting newcomer
  • *
  • Posts: 2
Re: Default main.cpp
« Reply #4 on: August 28, 2013, 11:27:40 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