Changing default workspace path.

CodeLite installation/troubleshooting forum
Janus
CodeLite Curious
Posts: 6
Joined: Tue Dec 12, 2017 4:21 am
Genuine User: Yes
IDE Question: C++
Contact:

Changing default workspace path.

Post by Janus »

Hi, I am really hoping this is just a case of me being blind.

Does anyone know how to change the default workspace path for codelite? {I am using Win7}
Currently it insists on starting in %userprofile%, and I am unable to find the setting to change that.

I do not use the profile directory tree for anything.
Codelite is not installed on that drive letter, not is there any code on it either.
Programming has its own drive letters, compilers on one, code on another.

I am working on using codelite to compile my fork of Celestia using Mingw as a compiler.
In addition I am using it for the support libraries it needs as well.

Doing this, I have to navigate to where I want the workspace and code I have every single time.
With VS & QT creator, I as able to easily set where stuff is stored.
This lets me default to where I am actually working, a huge time saver.

I am hoping there is a setting I have missed, otherwise I will need to make one for myself, and that is a lot of work.

Thank you.


Janus.
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Changing default workspace path.

Post by eranif »

Why does it bother you where it offers to save the workspace?
Once you create a workspace, you can simply load it...

The workspace is loaded automatically for you next time you start CodeLite (unless you closed it before exiting CodeLite)
Also, you can always open it from: "File->Recent workspaces"
Or View->Show welcome page->Recent workspaces
Make sure you have read the HOW TO POST thread
Janus
CodeLite Curious
Posts: 6
Joined: Tue Dec 12, 2017 4:21 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Changing default workspace path.

Post by Janus »

@eranif

That is essentially what I have been doing.
However, I have many projects I am hoping to move from VS eventually.
I make a lot of my own tools, and having to navigate to where I want things every single time goes from time wasting, to frustrating, to infuriating, very quickly.

If there is not, and there is no plan for there to be.
Then I will continue experiment with codelite to see if everything else is good.
Then if it is, I will simply fork the code, add an option to the config file, or use a different environmental variable to set the default workspace path.

I add %CodeLite_Workpath% testing, with fallback to %userprofile% if the former is undefined or empty, and the rest stays the same.
I get what I want, without breaking anything else.
The same basic idea should work in Linux as well, though I am not much of a Linux user.
I mostly gave up on it when I could not predict the GUI {Any of them}, or kept getting stuck in file permission '43LL'.

If others find it useful, then either the code, or the idea, can be incorporated, with little hassle, providing a lot of flexibility for those that want it.

In short, I care because I intend to use it a lot, and having to fix the storage path every single time is a massive waste of time.


Janus.

Edit: Sp fixes.
Last edited by Janus on Tue Dec 12, 2017 11:51 pm, edited 1 time in total.
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Changing default workspace path.

Post by eranif »

OK, I understand your need.
It makes sense to make it configurable somewhere in CodeLite's settings
Please open a feature request for it
Make sure you have read the HOW TO POST thread
Post Reply