需要另外下载安装 GCC 编译器
先安装 TDM-GCC 编译器 (安装时可能需要取消第一步的选项才能顺利安装)
打开 Code::Blocks, Settings>Compiler>Toolchain executables>Auto-detect(自动搜索编译器位置)
尽管设置编译器目录, 但可能在不同系统版本中, Program Files 对应的语言编译器路径可能不一定能搜索到, 所以需要手动设置位置
配置主题皮肤:
先替换 default.conf (需要关闭 code::blocks)
Settings>Editor>(左栏)Syntax highlighting> Colour theme
应用皮肤后光标可能与主题背景同化了颜色, 所以需要重新设置光标颜色:
Other editor settings > 激活 Highlight line under caret
PS:
'default.conf' 替换官网代码: http://wiki.codeblocks.org/index.php?title=Syntax_highlighting_custom_colour_themes
TDM-GCC 下载地址: http://tdm-gcc.tdragon.net/download
来源: https://www.cnblogs.com/zer043/p/8451949.html