ubuntu 14.04使用codeblock
1、安装
sudo apt-get install codeblocks codeblocks-common codeblocks-contrib wxformbuilder libwxbase3.0-0 libwxgtk3.0-0 wx-common wx3.0-headers wx3.0-i18n wx3.0-examples
2、基础配置
http://wiki.codeblocks.org/index.php?title=Syntax_highlighting_custom_colour_themes 添加theme
setting => syntax highlighting 配置theme
setting => editor => margin and caret 配置光标显示(默认为黑色,黑色theme时看不到)
setting => editor => keyboard shortcuts 配置快捷键
setting => editor => code complete 配置代码自动完成
3、项目
file => new => project 创建项目
项目属性 => build options 配置项目环境,tag,shared lib,头文件等
file => new => file / class 新添加代码文件
4、常用快捷键
ctrl + G 跳转到某一行
alt + G 打开某一文件
ctrl + shift + G 跳转到某一函数
ctrl + F9 编译
ctrl + F10 运行
ctrl + F11 重新编译
F9 编译+运行