使用gEdit搭配terminal来写程序也有一段时间了,但一直当它是windows下的notepad,没有好好熟悉下它,今天无意中发现原来 gEdit也可以打造一个不错的编程环境。这里对相关的资料收集总结了一下,与大家共享。
gEdit是GNOME桌面环境中默认的文本编辑器,它 简单易用,对中文支持良好,支持多种字符编码,同时具有开放的插件支持特性。通过安装插件,作一些简单的设置,gEdit就可以做为一个简洁的编程环境。 在我的Ubuntu 8.04下,默认情况只安装了gedit包,还有以下几个插件:
代码:
Change case: Changes the case of selected text.
Document Statistics: Analyses the current document and reports the number of words, lines, characters and non-space characters in it.
External tools: Execute external commands and shell scripts. (More)
File Browser: A file browser plugin allowing to easily access your filesystem (includes remote mounts, creating new files/dirs, monitor dirs for changes, etc) (More)
Indent: Indents or un-indents selected lines.
Modelines: Emacs, Kate and Vim-style modelines support for gedit.
Python console: Interactive python console standing in the bottom panel.
Snippets: Insert often used pieces of text in a fast way. (More)
Sort: Sorts a document or selected text.
Spell: Checks the spelling of the current document.
Tag list: Provides a method to easily insert into a document commonly used tags/strings without having to type them.
Insert Date/Time: Inserts current date and time at the cursor position.
安 装gedit-plugins。其中包括
代码:
* Smart Spaces: Forget you're not using tabulations. <=== 智能空格
* Embedded Terminal: Embed a terminal in the bottom pane. <=== 内嵌的terminal,应该是最有用的一个插件了,有了它,我们就可以不用上面External tools来编译调试程序啦,而且也不用心烦在gedit与terminal之间来回切换了,不足之处是貌似只能有一个terminal,有时不够方便。
* Show/Hide Tabbar: Add a menu entry to show/hide the tabbar. <=== 显示/隐藏标签栏
* Join/Split Lines: Join several lines or split long ones <=== 合并/分割行
* Color Picker: Pick a color from a dialog and insert its hexadecimal representation. <=== 拾色器
* Draw Spaces: Draw Spaces and Tabs <=== 特别显示空格与制表符
* Session Saver: Save and restore your working sessions <=== 会话保存 不过貌似不怎么管用哦,>3<
* Code comment: Comment out or uncomment a selected block of code. <=== 注释代码,这下要注释大片代码就方便了
* Bracket Completion: Automatically adds closing brackets. <=== 自动的括号补全
* Character Map: Insert special characters just by clicking on them. <=== 对特殊字符集映射,暂时对我而言没什么用