How To Install Dark Themes In Code::Blocks

Code::Blocks is mostly used opensource IDE due its great features. Code::Blocks is lightweight and easy to use. Becoming opensource it is also available for Linux and is free to download and use. It is best IDE for beginners, who wants to learn C, C++ and FORTRAN and for creating small projects. However for large projects Code::Blocks may not be good.

Code::Blocks comes with light theme by default and not all users like it. There is no option to change the editor theme is Code::Blocks however we can change it manually. Here is how to install Code::Blocks themes.

Theme download link is given at the end of this post.

Available Code::Blocks Themes

  • Son of Obsidian (my favorite)
  • Sublime
  • Oblivion
  • Vim
  • Dark gray
  • KFT2
  • Bright yellow
  • Espresso Libre
  • Modnokai Coffee
  • Modnokai Night Shift
  • Modnokai night Shift v2
  • Slush and Poppies
  • Solarized Dark
  • Solarized Light

How to install CodeBlocks theme?

First you need to download the themes, download it from here: Code::Blocks Theme. Then extract it on the desktop. Close the CodeBlocks application before opening CB Share Config. CB Share Config is a tool that installs along with CodeBlocks. It can be found in Program list.

  • Exit CodeBlocks if already opened.
  • Open CodeBlock Share Config
  • Browser Destination Configuration file which is in right side.
  • Select default.conf
  • Browse Source Configuration file which is in left side.
  • Select the downloaded theme.conf
  • Tick all the checkbox that appeared in source configuration file, which is in right side. (You can use space to tick)
  • Click on Transfer and then Save, and then Close.
  • Now open CodeBlocks, goto Settings>>Editor>>Syntax Highlighting and then Color Themes.

For Linux/Ubuntu

Open CB Share Config using: $ cb_share_config. Then follow the above steps for windows.

For Mac

default.conf is located at ~/Library/Application Support/codeblocks/default.conf and cb_share_config is under CodeBlocks.app/Contents/MacOS/cb_share_config. The Library folder is by default hidden by the most recent version of Mac OX. You could use COMMAND+SHIFT+G to navigate to hidden folders.

Watch this video to learn how to install dark themes in CodeBlocks

Installing Code::Blocks themes
  • If you don’t have default.conf file inside CodeBlocks directory try creating a project, it will be generated.
  • If background of line number did not change go to settings > environment settings > colors. Then edit the following; editor-caret,line number background color, line number foreground number, margin chrome color, margin chrome highlight color.

Downloads

Google Drive – https://drive.google.com/open?id=1qj6UpKXokr_QHLrRalMrTcMjsed8vKcI

Also see – How can you Activate Windows 10 for Free

ZippyShare – https://www54.zippyshare.com/v/FZCpqIEx/file.html

Important Links

Code::Blocks Forum: http://forums.codeblocks.org/

Source : http://wiki.codeblocks.org/index.php/Syntax_highlighting_custom_colour_themes

Problem finding default.conf file?
You may want to read FAQ – http://wiki.codeblocks.org/index.php/FAQ-Settings


More articles for you

Receive New Post by Email

Leave a Comment

59 thoughts on “How To Install Dark Themes In Code::Blocks”

  1. Hi, Sangam!
    Dark themes only work for C/C++ code, aren’t they?
    I tell you because I work Fortran code and any dark theme don’t work, just on my C/C++ code.

    Reply
  2. after installing this my CB takes 20-30 seconds to startup!!! What happend?
    i tried reinstalling it for 3 times and still startup is slow.

    Reply
  3. hey…Thanks a lot for the post. Editor turned to dark mode but the number line
    I cant find colors under environment setting.

    Reply
    • If background of line number did not change go to settings > environment settings > colors. Then edit the following; editor-caret,line number background color, line number foreground number, margin chrome color, margin chrome highlight color.

      Reply
  4. Thanks for this Mr. Sangam. Its a great modification in the theme of code::blocks editor. It’s very useful for me when I code for a longer period of time.

    Reply
  5. Hello!
    I use Code::Blocks installed from ports at FreeBSD 12.1. There is cb_share_config tool, but I have no idea where default.conf is located.
    Maybe somebody knows?

    Reply
  6. Thanks for the post.
    I have tried it, but after following the instruction, the “colour theme” setting in Editor settings -> syntax highlighting can only be set to Default, as if I have done nothing.
    Do you know what happened?
    I did clicked transfer, save and close… 🙁

    Reply
  7. I did what was in the article and it worked but the left bar of the editor which has the line numbers stays white regardless of theme, how can i change that?

    Reply
    • That should be set manually from appearance settings. Go to settings > environment settings > colors. Then edit the following; editor-caret,line number background color, line number foreground number, margin chrome color, margin chrome highlight color. Shout me if u need further help.

      Reply
  8. I think in newer versions of CodeBlocks utility “CB Share Config” renamed to “CodeBlocks Share Config”, this might lead to confusion.

    Reply
  9. Great man.. Really Helpful…But themes was found under customized themes which was extracted to the desktop…
    *To those who may not find it..

    Reply
  10. So I have done this successfully however I was wondering if there is an easy way to modify the colors of the CodeBlocks IDE that are not associated with the text editor. I would like to make the “windows” dark themed. Thanks.

    Reply
  11. Hi
    I used your instructions to change my theme to dark in windows but is there a way to change my Code::Blocks theme in Linux Ubuntu?

    Reply
  12. Ok, I did everything according to instructions, downloaded the colorschemes.conf, merged it with default.conf
    using the share tool, enabled the theme in the editor settings, and I get the right theme in the code preview window, but when I go to the real window and open a new project or file, it is still just black on white! It just doesn’t work … I cant use an editor with white background.

    Reply