Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: huzhongshan on March 08, 2015, 12:22:04 am

Title: Is there any tools to immigrate cb settings to other machine?
Post by: huzhongshan on March 08, 2015, 12:22:04 am
I got a new machine , and wants to immigrate all the settings of cb to the new machine.
I found I had to find the user templates in appdata/...../codeblocks/... to copy them by hand.

Is there any tools to immigrate all user setting (include user templates and syn highlights , fond , color etc) ?
Title: Re: Is there any tools to immigrate cb settings to other machine?
Post by: stahta01 on March 08, 2015, 01:42:39 am
Yes, no idea if it will work for different type OSes.

Lookup the cb tool called cb_share_config.exe on windows.
Edit: It is a stand alone tool to be used without CB running when using it.

NOTE: Backup the codeblocks config file before trying to use the tool.
It works in a weird manner the one time I tried to use it.

Edit2: It does NOT move templates to my knowledge.

Edit3: I would likely just copy the CB default config file if I wished to move all of it.

Tim S.
Title: Re: Is there any tools to immigrate cb settings to other machine?
Post by: Jenna on March 08, 2015, 08:13:53 am
I would copy the whole "%APPDATA%\CodeBlocks"-folder to get all templates and other stuf.
This folder will otherwise be created from scratch on first run of C::B.
You might have to fix the toolchains afterwards, or leave out the "[personality].conf" file(s) and migrate them using "cb_share_config(.exe)" .
Title: Re: Is there any tools to immigrate cb settings to other machine?
Post by: huzhongshan on March 09, 2015, 12:47:39 am
Is it possible to make a tool to pack and unpack all user data ( including syntanx highlight , font AND user template )?
Title: Re: Is there any tools to immigrate cb settings to other machine?
Post by: oBFusCATed on March 09, 2015, 12:54:37 am
No reason to waste time on doing it. There are already plenty of tools already available that will do a better job (explorer, zip, rar, 7zip, copy, etc). Just copy %APPDATA%\Codeblocks and you'll have everything you need. CB doesn't store users setting anywhere else.
Title: Re: Is there any tools to immigrate cb settings to other machine?
Post by: huzhongshan on March 10, 2015, 12:26:45 am
No reason to waste time on doing it. There are already plenty of tools already available that will do a better job (explorer, zip, rar, 7zip, copy, etc). Just copy %APPDATA%\Codeblocks and you'll have everything you need. CB doesn't store users setting anywhere else.
? we call this self-contained.
Title: Re: Is there any tools to immigrate cb settings to other machine?
Post by: oBFusCATed on March 10, 2015, 12:59:15 am
Patches welcome, then  ::)