Change c++ template file

General questions regarding the usage of CodeLite
emitlustful
CodeLite Curious
Posts: 5
Joined: Tue Jul 28, 2015 7:45 pm
Genuine User: Yes
IDE Question: c++
Contact:

Change c++ template file

Post by emitlustful »

I want to change C:\Program Files\CodeLite\templates\projects\executable\main.cpp file but it always prompts "access is denied".

Is there a way I can change the default template file?
Gibbon1
CodeLite Expert
Posts: 167
Joined: Fri Jul 22, 2011 5:32 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Change c++ template file

Post by Gibbon1 »

I think your computers security settings are set up (probably justly and correctly) to deny write access to system folders like C:\Program Files\...

Try this, When you open your favorite editor, instead of double clicking to open, right click and select 'Run as Administrator'
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Change c++ template file

Post by eranif »

Please open a bug report, CodeLite should not attempt to write to C:\Program Files ... in any case

Eran
Make sure you have read the HOW TO POST thread
emitlustful
CodeLite Curious
Posts: 5
Joined: Tue Jul 28, 2015 7:45 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Change c++ template file

Post by emitlustful »

Gibbon1 wrote: right click and select 'Run as Administrator'
Yes, it works! Thank you.
emitlustful
CodeLite Curious
Posts: 5
Joined: Tue Jul 28, 2015 7:45 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Change c++ template file

Post by emitlustful »

eranif wrote:Please open a bug report, CodeLite should not attempt to write to C:\Program Files ... in any case

Eran
Hello, Eran. I don't know what are you talking about. I am just starting to learn programming. I don't know how to report a bug for CodeLite.
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Change c++ template file

Post by eranif »

Make sure you have read the HOW TO POST thread
Gibbon1
CodeLite Expert
Posts: 167
Joined: Fri Jul 22, 2011 5:32 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Change c++ template file

Post by Gibbon1 »

I think you can save a project as a template without modifying the ones that are installed with codelite in C:\program files\codelite\whatever

You can try, from the workspace view, select the workspace tab. Then select the project. right click->Save As Template...

Last time I tried this is worked except for not preserving the directory structure of the project. Meaning next time you create a project you'll have the option to use the new template.
Post Reply