歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux技術 >> ubuntu 14.04使用codeblock

ubuntu 14.04使用codeblock

日期:2017/3/3 12:43:24   编辑:Linux技術

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 編譯+運行
Copyright © Linux教程網 All Rights Reserved