News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

How to preserve my settings on Ubuntu?

Started by const451, May 30, 2011, 03:34:42 AM

Previous topic - Next topic

const451

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!

MortenMacFly

Quote from: const451 on May 30, 2011, 03:34:42 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).
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

const451

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!

MortenMacFly

Quote from: const451 on May 30, 2011, 04:14:39 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

const451

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!

MortenMacFly

Quote from: const451 on May 30, 2011, 10:26:59 PM
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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]