作者dxi (D差耶)
看板EE_DSnP
标题[问题] ctags
时间Mon Apr 13 01:33:57 2009
再度请教教授与同学们:
Type “make ctags” to create ctages for all
the source codes. Be sure to add in the following
line in your “$HOME/.vimrc” (if you don’t have
this file, create one):
set tags=./tags,../tags
Then when you use “vi” to edit the source code,
you can jump to the function/class definition of
the identifier your cursor is currently on by
pressing “ctrl-]”. To come back, simply press “
ctrl-t”.
关於这个指示有两个问题:
a.我成功的make ctags了,而add following line的指示不明白
终端机上面有那个档案吗?若有的话档案名称是.vimrc?
b.根据第二行的说明,ctags的功能是跳到原函式的define的地方吗?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.4.234
1F:推 jjjj222:新增或者修改~/.vimrc 里面增加一行 04/13 01:37
2F:推 jjjj222:set tags=./tags,../tags 04/13 01:37
3F:推 jjjj222:使用Ctrl+]可以方便的trace code 04/13 01:39
4F:推 bnsblue:ctags像是一个stack 用ctrl+]往前trace 用ctrl+t往後 04/13 09:29
5F:→ dxi:恩恩 问题解决了 04/17 02:26