Configure gedit for Linux C editor __linux

Source: Internet
Author: User
Tags split words

The following environments are installed and configured based on Ubuntu 10.04.

1. The gedit position is located in/usr/lib/gedit-2/plugins

Third-party plug-ins and custom Plug-ins will be copied to the directory.

2. Install gedit Standard plugin sudo apt-get install gedit-plugins

Basic configuration of 3.gedit

A.edit-> Preferences

B. view:enable Text Wrapping

Don't split words over two lines

Display line numbers (show row number) This is very useful.

Highlight current line highlights when moving forward

Right margin at COLUMN:XX displays a baseline in column XX

Highlight matching bracket highlighting frame (such as curly braces, parentheses, etc.)

Width of the c.editor:tab width Tab symbol in the editor

Insert spaces instead of tabs when you enter tab, replace with a space

Enable automatic indentation Open automatic recognition

Create A backup copy of files before saving backup before saving

Autosave files every xx minutes every xx minutes, automatically save

D.font & Colors fonts and colors. The default font size is 10, personal feel a bit large, I set to 9, more appropriate.

To set the font, you need to remove the hook in front of the system fixed width font

4. Plugin settings (plays. No plug-ins, gedit not so strong)

A. I installed the plugin C-style indentation This can be used to identify C of some code blocks.

Copy the plug-in file to the plugin directory and restart Gedit

B. In edit-> preferences-> Plugins

I have enabled the following several plug-ins

C-style Indentation

Document Statistics documentation Statistics. You can view some of the statistics for the document in the tools-> documents Statistics.

Embedded Terminal embedded in the Gedit a terminal, can be used for some compile debugging work, very convenient. It can be opened by View->bottom Pane or CTRL+F9.

File Browser Pane Files Browser This is also very convenient. Side Pane can be opened through View->.

Quick open can be used for fast opening files (historical files) to be seen in the file-> Quickly open.

Snippets can insert blocks of code, and when checked, you can edit pluggable blocks of code in configure plugin to support multiple languages.

When you enter, enter the block size, and then press the TAB key twice to generate the code blocks automatically. For <tab><tab> ....

Word completion the spelling automatically. Enter the previous section of the code, which is automatically prompted after the code has been entered.

Insert Date/time insertion Time Date

D. I closed the plugin

Spell Checker spell check, it doesn't feel good.

So set up with Gedit in Linux for C language writing is more useful.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.