main.cpp - how to get rid of it?

General questions regarding the usage of CodeLite
HJarausch
CodeLite Veteran
Posts: 98
Joined: Thu Feb 18, 2010 10:54 pm
Genuine User: Yes
IDE Question: C++
Contact:

main.cpp - how to get rid of it?

Post by HJarausch »

Hi,

when I create a g++ console project CodeLite automatically generates a file 'main.cpp', which I normally don't want.
If I then create another project in the same workspace, it fails because there is already a file 'main.cpp'.
So, I have to remove it each time.

Is there an option to disable generating this dummy main.cpp file?

Many thanks for a hint,
Helmut.
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: main.cpp - how to get rid of it?

Post by eranif »

1) Create a project with main.cpp.
2) remove the file main.cpp
3) save the project as template (right click the project 'Save as template'), give it a name 'Console with no main' (or anything else...)

From this point on, use your newly created template instead of the default one when creating new projects.

Eran
Make sure you have read the HOW TO POST thread
HJarausch
CodeLite Veteran
Posts: 98
Joined: Thu Feb 18, 2010 10:54 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: main.cpp - how to get rid of it?

Post by HJarausch »

Thanks!
Helmut.
Post Reply