Page 1 of 1
Change c++ template file
Posted: Tue Jul 28, 2015 7:51 pm
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?
Re: Change c++ template file
Posted: Wed Jul 29, 2015 12:58 am
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'
Re: Change c++ template file
Posted: Wed Jul 29, 2015 9:50 am
by eranif
Please open a bug report, CodeLite should not attempt to write to C:\Program Files ... in any case
Eran
Re: Change c++ template file
Posted: Wed Jul 29, 2015 5:12 pm
by emitlustful
Gibbon1 wrote: right click and select 'Run as Administrator'
Yes, it works! Thank you.
Re: Change c++ template file
Posted: Wed Jul 29, 2015 5:15 pm
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.
Re: Change c++ template file
Posted: Wed Jul 29, 2015 11:00 pm
by eranif
Re: Change c++ template file
Posted: Thu Jul 30, 2015 1:05 am
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.