Page 1 of 1

How to copy out all configs I have changed?

Posted: Fri May 23, 2014 1:37 pm
by guang11cheng
I want to export all configs I have changed on codelite, including but not limited to:
(1) colors and fonts
(2) keyboard shortcuts
(3) all plugin's setting

After I export all configs, I want to get a .tar file. Then I give the .tar file to other members in my team, and then they can import the file into there codelite.
So configs shared among everyone using codelite.

I found a 'config' dir in ~/.codelite/, but there is nothing about plugins detail setting.

best regards

Re: How to copy out all configs I have changed?

Posted: Fri May 23, 2014 7:08 pm
by eranif
guang11cheng wrote:(1) colors and fonts
Just send the files

Code: Select all

%APPDATA%\CodeLite\lexers
to your team members
guang11cheng wrote:(2) keyboard shortcuts
All keyboards are logged into the file

Code: Select all

%APPDATA%\CodeLite\accelerators.conf
guang11cheng wrote:(3) all plugin's setting
This one is a bit tricky, since each plugin saves its info in a different location.
But mostly plugins will save their data in 2 possible locations:

Under the workspace folder:

Code: Select all

WORKSAPCE/.codelite/
Or under the config directory at

Code: Select all

%APPDATA%\CodeLite
Eran

Re: How to copy out all configs I have changed?

Posted: Mon May 26, 2014 6:42 am
by guang11cheng
Thank you, Eranif!


I found most conf file is placed at dir ~/.codelite/config/, list below:
-rw-rw-r-- 1 huanggc huanggc 1979 May 23 19:21 abbreviations.conf
-rw-rw-r-- 1 huanggc huanggc 9000 May 22 10:22 accelerators.conf
-rw-rw-r-- 1 huanggc huanggc 41 May 20 18:41 cmake.ini
-rw-rw-r-- 1 huanggc huanggc 3619 May 26 10:13 code-completion.conf
-rw-rw-r-- 1 huanggc huanggc 7145 May 26 10:13 codelite.conf
-rw-r--r-- 1 huanggc huanggc 15759 May 26 10:13 codelite.xml
-rw-rw-r-- 1 huanggc huanggc 1299 May 26 10:13 debuggers.xml
-rw-rw-r-- 1 huanggc huanggc 3 May 15 10:59 debugger-view.conf
-rw-rw-r-- 1 huanggc huanggc 3018 May 15 10:59 debug.layout
-rw-rw-r-- 1 huanggc huanggc 2801 May 26 10:13 default.layout
-rw-rw-r-- 1 huanggc huanggc 327 May 26 10:13 environment_variables.xml
-rw-rw-r-- 1 huanggc huanggc 679 May 26 10:13 git.conf
-rw-rw-r-- 1 huanggc huanggc 3721 May 26 10:13 plugins.conf
-rw-rw-r-- 1 huanggc huanggc 115 May 23 19:21 sessions.xml
-rw-rw-r-- 1 huanggc huanggc 3 May 26 10:13 sftp-settings.conf
-rw-rw-r-- 1 huanggc huanggc 187 May 23 19:21 wxcrafter.conf
-rw-rw-r-- 1 huanggc huanggc 103 May 26 10:13 zoom-navigator.conf

so you can see the code formatter conf is not here.


and files in the dir /usr/share/codelite/config/ list below:
-rw-r--r-- 1 root root 7867 Jan 12 14:53 accelerators.conf.default
-rw-r--r-- 1 root root 21573 Jan 12 14:53 build_settings.xml.default
-rw-r--r-- 1 root root 1030 Jan 12 14:53 codelite.xml.default
-rw-r--r-- 1 root root 1248 Jan 12 14:53 debuggers.xml.default

you can see they are 'default' conf, not customized and modified by myself.

I suggest place all conf files at ~/.codelite/config/ and supply a tool menu to export all conf files out and import all conf files in.

Re: How to copy out all configs I have changed?

Posted: Mon May 26, 2014 2:55 pm
by eranif
Some plugins also have settings per workspace - these settings are kept under the workspace folder /path/to/workspace/.codelite/
and some plugins are using the a custom configurations ( I think that the Snippets plugin does that)
So its a start, but not a complete one

Eran