1. Start:
Start from the menu: Application --> attachments --> Text Editor
Run the following command from the command line: gedit
2. Window description:
Menu Bar: contains all the commands required to process files in gedit.
Toolbar: contains a subset of commands that you can access from the menu bar.
Display area: This area contains the text of the file you are editing.
Output Window: displays the output returned by the Shell Command plug-in and Compare file plug-ins.
Status Bar: displays information about the current gedit activity and context information about the menu item.
3. tips:
A. open multiple files:
To open multiple files from the command line, type the following command and press the Enter key: gedit file1.txt file2.txt file3.txt
B. Ship the command output to a file:
For example, to deliver the ls command output to a text file, Type ls | gedit and press Enter. The ls command output is displayed in a new file in the gedit window.
C. Edit the highlighted mode in applicable documents:
View --> highlight mode --> Markup Language --> HTML: You can view html files in color mode.
D. Make good use of plug-ins:
Statistics: calculates the number of lines, words, characters, and bytes in the current file. The plug-in displays the results in a "document statistics" dialog box.
Indent: indent the selected row or delete the indent from the selected row.
Insert date/time: insert the current date and time to the file.
Shell: The command displays the text output of the shell command in the output window.
Sort: sorts selected text.
E. Shortcut Keys:
CTRL-Z: undo
CTRL-C: Replication
CTRL-V: Paste
CTRL-T: Indent
CTRL-Q: Exit
CTRL-S: Save
CTRL-R: Replacement
CTRL + Tab Switch
CTRL + W close the tab
Author sunstars2009918