Synergy between ctags and cscope

2019-08-21 20:03发布

I've used both cscope and ctags to collectively help browse the C code previously.

Now with C++ code, I'm trying to use them to aid in code browsing. This is how the cscope and ctags DBs have been built:

$ find . -name '*.cc' -o -name '*.h' > cscope.files
$ cscope -b
$ ctags -L cscope.files

Invoking cscope:

$ cscope -d

Once I search for a symbol and open the relevant file from within cscope, I'm unable to find definitions of other symbols using . The error is:

E433: No tags file
E426: tag not found: Parser
Press ENTER or type command to continue

Any idea on what's wrong?

Thanks!

标签: c++ ctags cscope
1条回答
霸刀☆藐视天下
2楼-- · 2019-08-21 20:49

Looking through the .vimrc file, I found an entry for tags that was pointing to an invalid location. Removing that entry solved the problem.

Thanks!

查看更多
登录 后发表回答