Author Topic: Is there any tools to immigrate cb settings to other machine?  (Read 3608 times)

Offline huzhongshan

  • Multiple posting newcomer
  • *
  • Posts: 109
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) ?
« Last Edit: March 08, 2015, 12:50:37 am by huzhongshan »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Is there any tools to immigrate cb settings to other machine?
« Reply #1 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.
« Last Edit: March 08, 2015, 01:45:39 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Is there any tools to immigrate cb settings to other machine?
« Reply #2 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)" .

Offline huzhongshan

  • Multiple posting newcomer
  • *
  • Posts: 109
Re: Is there any tools to immigrate cb settings to other machine?
« Reply #3 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 )?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Is there any tools to immigrate cb settings to other machine?
« Reply #4 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline huzhongshan

  • Multiple posting newcomer
  • *
  • Posts: 109
Re: Is there any tools to immigrate cb settings to other machine?
« Reply #5 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Is there any tools to immigrate cb settings to other machine?
« Reply #6 on: March 10, 2015, 12:59:15 am »
Patches welcome, then  ::)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]