Vim+ctags+cscope Tools

Source: Internet
Author: User
Tags function definition

recently looking at an open source project, I suddenly discovered that there is no convenient tool to look at the open source code on Linux. Previously, with VS2010 integrated development Environment on Windows, shortcut keys for any function directly jump to the function definition. can now be helpless on Linux. Then, began to find information on the Internet, only to know that there are ctags artifacts on Linux, alas. Sad, in the end is a rookie, even these commonly used tools do not know, still need to work Ah! Here is the first record of learning ...

I. Plugin INTRODUCTION

most Unix systems have ctags, which works well with vim. Ctags tool is mainly used to traverse the source code files generated tags files, these tags files can be the editor to quickly locate locate source code symbol (TAG/SYMBOL).

Two. Usage

1. Installation

Apt-get Install Ctags

You can also go to the official website to download the source installation.

1. Role

2.1 Generating Tag files tags

In the current directory $ctags-R.

-R indicates recursive, recursively, generates a label file for the file in the current directory and its subdirectories: represents the current directory

The objects contained in the tags file

Vim+ctags+cscope Tools

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.