Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: const451 on May 30, 2011, 03:34:42 am

Title: How to preserve my settings on Ubuntu?
Post by: const451 on May 30, 2011, 03:34:42 am
Hello,

I am using some custom editor settings such as colors, and custom shortcuts, what is the file that codeblocks keeps those settings in?

I'd like to save that file so I can easily restore those settings next time I reinstall Ubuntu.

THX!
Title: Re: How to preserve my settings on Ubuntu?
Post by: MortenMacFly on May 30, 2011, 05:38:39 am
I'd like to save that file so I can easily restore those settings next time I reinstall Ubuntu.
Watch out for a file named default.conf, usually located in your HOME directory in the sub-folder .codeblocks.

Notice you can use cb_share_config tool to save / transfer some settings (not all).
Title: Re: How to preserve my settings on Ubuntu?
Post by: const451 on May 30, 2011, 04:14:39 pm
Thank you for the reply.

In the folder I found cbKeyBinder10.ini which was correctly last modified today, it contains my shortcuts.

Unfortunately, default.conf was modified on May 15, that's when I installed codeblocks. I am afraid it does not contain my color settings.

I did search on all files that were modified on 2011-05-30 but I got 10K+ files, I do not think I can find the right one among them.

Is there any other config file that codeblocks uses to save color settings? I made the changes directly to default scheme.

Thanks again!
Title: Re: How to preserve my settings on Ubuntu?
Post by: MortenMacFly on May 30, 2011, 08:33:04 pm
Is there any other config file that codeblocks uses to save color settings? I made the changes directly to default scheme.
No. However, if you installed a portable version it might also be in the application folder. Hence it will always be called "default.conf" which you can search for.
Title: Re: How to preserve my settings on Ubuntu?
Post by: const451 on May 30, 2011, 10:26:59 pm
That was correct default.config. The file was updated only after I closed codeblocks. Weird. I would expect the changes to be populated as soon as I click Ok on config editor dialog box.

Anyways, thank you for your help!
Title: Re: How to preserve my settings on Ubuntu?
Post by: MortenMacFly on May 31, 2011, 10:57:12 am
I would expect the changes to be populated as soon as I click Ok on config editor dialog box.
The settings are persisted when you close C::B. During run-time (for speed-up) they are buffered in memory, so all read/write operations are in memory only, until you close C::B.

Although this may be debatable, it has been like that for a long time.