http://blog.csdn.net/xiaomeiqing/article/details/6997932
2.從https://github.com/Quixotix/gedit-source-code-browser/downloads下載
Quixotix-gedit-source-code-browser-v3[2].0.3-0-gb009544.tar.gz
3. 解壓縮文件
4. 將文件 sourcecodebrowser.plugin
和文件夾 sourcecodebrowser
復制到 /usr/lib/gedit/plugins/
5. 在 gedit -- 編輯-- 首選項中 選擇 Source Code Browser
6. 在 gedit -- 查看 中選中側邊欄
1、首先安裝gedit-gmate。
gedit-gmate可以給gedit增加一些插件,讓gedit具有更多的功能,尤其是對編程人員特別有幫助。
Gmate包含了大量的插件,主題等其他強大的特色,咱們先來看下他都能實現哪些功能:
高級的書簽功能
用Grep查詢特定內容
單詞補全
高亮代碼
……
等等,當然還有更多的功能、語言支持和豐富的主題有待你去慢慢發覺,尤其是編程人員。
重點部分,ubuntu下的安裝方法:
sudo apt-add-repository ppa:ubuntu-on-rails/ppa --添源加到源列表/etc/apt/sources.list中
sudo apt-get update --更新源列表
sudo apt-get install gedit-gmate --安裝gedit-gmate
Gmate不會刪除Gedit的,他只是給Gedit添加很多插件而已,您可以在首選項里手動啟用或者停止。
2、還可以用下面的命令再安裝一些插件,如括號補全、單詞不全(這個挺有用的)、標記列表、代碼注視等等。
sudo apt-get install gedit-plugins --再安裝一些插件
3、安裝Source Code Browser插件。
這個插件可以把程序中的函數、類、變量以列表的方式列出,對編程人員相當有用。
之前在ubuntu-10.10上有用過Class Browser,但是這個插件在ubuntu-11.10上不能用,
因為ubuntu-10.10上的是gedit2,ubuntu-11.10上的是gedit3。
剛開始在ubuntu-11.10不懂怎么安裝這個插件,找了很久才找到這個插件。
gedit2的插件下載,http://live.gnome.org/Gedit/PluginsOld
gedit3的插件下載,http://live.gnome.org/Gedit/Plugins --找到Source Code Browser
也可直接從https://github.com/Quixotix/gedit-source-code-browser/downloads下載
Quixotix-gedit-source-code-browser-v3[2].0.3-0-gb009544.tar.gz
安裝方法:
apt-get install exuberant-ctags --安裝ctags
tar xzvf Quixotix-gedit-source-code-browser-v3[2].0.3-0-gb009544.tar.gz
cd Quixotix-gedit-source-code-browser-b009544/
cp sourcecodebrowser sourcecodebrowser.plugin /usr/lib/gedit/plugins/
最后我在Gedit中添加的插件有
Pair Character Completion --自動補全符合
Smart Highlighting --高亮選中的內容
Source Code Browser --源代碼類和函數瀏覽器
代碼注釋
單詞補全
文檔統計
文件瀏覽器面板
添加插件,這些差不多就夠用了。