相關資源‎ > ‎

ctag

Check version
 ctags --version

Generate tag file
ctags -R *

Generate a tag file using the file list
ctags -L fileList
Or 
find . -type f -iname "*.[chS]" | xargs etags -a

To search for a specific tag and open Vim to its definition, run the following command in your shell:
vim -t <tag>

Or, open any Linux source file in Vim and use the following basic commands:

ctrl-] ==>  Jump to the tag underneath the cursor
:ts <tag> <RET>  ==> Search for a particular tag
:tn ==> Go to the next definition for the last tag
:tp ==> Go to the previous definition for the last tag
:ts ==> List all of the definitions of the last tag
ctrl-t ==>  Jump back up in the tag stack


emacs Keyboard command     Action
M-. <RET>                                  Jump to the tag underneath the cursor
M-. <tag> <RET>                       Search for a particular tag
C-u M-.                                        Find the next definition for the last tag
M-*                                              Pop back to where you previously invoked "M-."

Reference
Comments