作者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