User forums > Using Code::Blocks
How do I export CodeBlock themes and layout?
ulfben:
Hi everybody! I'm a long time Visual Studio-slave, trying out some cross platform work. To make myself feel like I home, I spent some time configuring CB syntax highlights (Zenburn), keyboard shortcuts (to mirror Visual Studio) and cleaning up the GUI-layout.
I would like to use this exact same setup on my Linux and Mac installs, and share the config with others. But I can't find a way to export my settings.
How can I export my settings for others to use? (and what do they do to import them?)
For now: if anyone wants the zenburn theme and some VisualStudio-keybinds, my configs are available here (7zip). I didn't replace CB-default binds, only added a few VS ones. Feel free to add / improve on it and post updates here!
I'm using Microsoft's beautiful Consolas ClearType-font. Here's a way to get Consolas free of charge.
Pecan:
Search for "portable" in this forum and on the wiki.
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_make_Code::Blocks_portable.3F
FAQ - CodeBlocks
The key definitions are in cbKeybinder.ini in the same directory as the default.conf. Copy your .ini files along with the .conf
Since the key definitions are bound to the menu id's, the linux and mac id's may be different, causing temporary errors when CB is first started on those systems. KeyBinder will eventually see the errors and compensate internally during scan intervals of 15 seconds.
I finally stopped moving my conf files between system types because wxWidgets uses dynamic id assignment for keys, windows, controls, etc. This causes programatic confusion when recording those id's and moving them from one system to another.
ulfben:
I was afraid manually copying the configuration files was the only way...
What I'd like to see is a clean way to export / import settings. Exporting should produce a single file, compatible with any CodeBlocks-install.
The user should be able to select categories of settings to export/import:
* Syntax highlight:
Color themes for the editor, obviously. :)
* Theme / styles:
Fonts, GUI-colours, GUI-layout, GUI-settings. (auto hiding panes, auto scrolling output, etc)
* Environment:
compiler settings, paths and such. ("private" settings, but useful for backup/restore)
* Plugins:
plugins should be able to add their settings to the export/import-feature.
What's the proper way to do feature request like these?
MortenMacFly:
--- Quote from: ulfben on November 01, 2008, 04:16:08 pm ---What's the proper way to do feature request like these?
--- End quote ---
Did you try cb_share_config already? It's in SVN and probably in the nightlies, too (I didn't check).
BTW: Usually all plugins have their settings in the C::B config file. There are only a few which make an exception (for good reasons). But these are maybe 1-2 more files to just copy.
ulfben:
--- Quote from: Pecan on November 01, 2008, 01:40:33 pm ---[...]I finally stopped moving my conf files between system types because wxWidgets uses dynamic id assignment for keys, windows, controls, etc. This causes programatic confusion when recording those id's and moving them from one system to another.
--- End quote ---
That's bad news! Couldn't/shouldn't we have an abstraction layer between wxWidgets' and Code::Blocks' settings?
@MortenMacFly:
No, I haven't heard of cb_share_config. Searched the forums for info on cb_share_config just now but don't get much more info than this. Where can I get it and what exactly does it do? Is it available for all platforms?
I just ran with the binary download for each platform (which is what my students will do anyway) and can't find nightlies anywhere...
About plugin's settings:
I just meant that in the system I envisioned, it's important that a user can control what sub-set of settings to import and export. And that plugins should (when possible/suitable) be covered and have their own category. It doesn't make sense to send all my settings just to hook a friend up with a sweet theme. :)
Navigation
[0] Message Index
[#] Next page
Go to full version