Ctags-View method definitions without using ide

Source: Internet
Author: User
Ctags-if ide is not used, you can view the definition of the method. ctags can be used with vim to view the definition of the method, just as pressing ctrl + and clicking view method to install sudoapt-getinstallctagsvim is case sensitive, you need to set the value vimvimrc, and type setignorecase to use ct ctags-do not use ide. view the method definition ctags and vim to view the method definition, as ide press ctrl + and click View to install sudo apt-get install ctags vim itself is case sensitive, you need to set the value of vim. vimrc, and type set ignorecase to use ctags main. c generate the tags file in the current directory, or use the wildcard ctags *. c vim tags can view the program structure ctags-R * ($ is the Linux system Shell prompt) ctags-R -- exclude = *. js recursion of the entire directory source file, but excluding js files Ctags-R -- exclude = *. js ~ /The following directory is equivalent to the classpath vi-t tag (replace the tag with the variable or function name you want to find): ts "Command starting with" command line mode command in VI "): tp (tp mnemonic: tags preview)-ignore this command is not commonly used, you do not need to remember: tn (tn mnemonic: tags next)-Skip This command is not commonly used, you do not need to remember to view your own mobile path, use tagsCtrl +] in vim command mode to move the cursor to the method to be viewed (you can use vim command mode/characters to be searched ), then, enter this command to view the original location of the last operation after Ctrl + T.
 

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.