close

There are four procedure when we want to use ctags.

1. go to the directory in which we want to trace the code.

2. Generates the tags file.

3. open the tags file by Vim.

4. then we can use the command to trace the code.

Keyboard command

Action

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

 

ref : http://www.cs.washington.edu/education/courses/cse451/10au/tutorials/tutorial_ctags.html

arrow
arrow
    全站熱搜

    JerryCheng 發表在 痞客邦 留言(0) 人氣()