User forums > Using Code::Blocks

Where are the settings saved?

(1/3) > >>

eddyq:
Where are the settings saved?

Jenna:
Depends on your operating system.

eddyq:
I use Windows 7 and Linux CentOS.

Jenna:
On windows in $APPDATA$\CodeBlocks (ususally c:\Users\[username]\AppData\Roaming\CodeBlocks ), on linux in $HOME/.codeblocks.
The settings are saved in default.conf, if C::B is not called with the -p (--personality,--profile) parameter. In this case it is saved in [personality].conf .

Editting the conf-file manually is not recommended, because it can break the settings and even make C::B crash in some rare cases.
To import and export some parts of the conf-file, you can use cb_share_config[.exe].
If soemthing went totally wrong, you can delete the file and it will be recreated from scratch.

eddyq:
Here is what I want to do, maybe someone can offer a solution.

1) I use VirtualBox on Windows and have my Linux in the VirtualBox and I use C::B from that virtual machine
2) I also use C::B for the same project on my Windows system
3) on VB I share the windows folder where the source and project is and I have a symbolic link to that share

This all works fine for the files and the project. But the settings are not shared so when I make a settings change on Windows I have to remember to make that same change on Linux.

One solution would be to tell C::B to keep the settings in the project. That would also solve the problem of checking in the settings into source control.

Eddy

Navigation

[0] Message Index

[#] Next page

Go to full version