Learning Tools-use eclipse with the CDT egit plug-in

Source: Internet
Author: User
Tags using git

PreviousArticle.

After installing the plug-in with Emacs, it works with the terminal SVN/git ~

 

For simplicity and convenience, I usually seldom install IDE, but eclipse is an exception because it supports development in multiple languages and is very convenient to use.

 

1. Install the eclipse CDT plug-in:

I believe many people have configured the eclipse + CDT plug-in. The configuration process is very simple. I will give a brief introduction to it, because there are many related articles.


Select help-> install new softwware from menu options of release E, and then add the official installation URL of the CDT plug-in. This URL can be found on the eclipse official website.

Eclipse CDT: http://download.eclipse.org/tools/cdt/releases/indigo

The installation process is based on the prompts to select next step by step, so it is concise and clear.

2. Install the SVN/git auxiliary plug-in:

The auxiliary plug-ins for SVN/git provide the: indigo Update site-http://download.eclipse.org/releases/indigo/ in the Update site addressTherefore, you only need to select installation in the update.

Select to install the egit plug-in.

 

The installation and configuration process is quite simple. In this process, you may need to restart eclipse, but it is also very fast. Next, let's take a look at how to use the egit plug-in eclipse ~

In the project Explorer window, right-click and select-> Import to view the use of various version control tools provided ~

Select project from git, and then select URI. This is my mode ~ Here you need to pay attention to the operation steps ~

First select connection protocol-> git, and then enter the git uri of glib In the URI: git: // git.gnome.org/glib

The next step is to complete the project creation.


3. How can I use the retrieval function in the source code?

Open a file: glib/gthread. h.

For example, I want to find the definition of glib thread structure _ gthread, for example:

 

In the following view, we can see all the files in the project that match the tag and the number of matched locations.

 

 


End:

Now, we will briefly describe it. using git/SVN on the terminal is not as user-friendly as menu operations in the GUI tool, but I prefer to use it directly on the terminal. it is convenient and convenient, without a lot of tool dependencies.

This article is only intended to provide another method to read the source code, and hope to help some students. another thing I need to apologize for is that I am under Ubuntu, because the picture is large and there is no image editing software. (even with me

It will not be used.) As a result, the image will be very large during display. I tested it just now. If your display is small, Please adjust the display by yourself. Sorry ~


 

 

 

 

Related Article

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.