Question

I am a big fan of ctags Hence I am wondering if I have cscope, will I benefit more there two programs. Seems like the latter has the same features as ctags, namely, facilitating the finding of symbols.

What are the features scope offers that can further increase my productivity with VIM?

Thanks

Was it helpful?

Solution

cscope can certainly improve your productivity.

ctags only allows you to navigate to the declaration of a symbol (one-way lookup).

cscope allows you to:

  • Go to the declaration of a symbol
  • Show a selectable list of all references to a symbol
  • Search for any global definition
  • Functions called by a function
  • Functions calling a function
  • Search for a text string
  • Search for a regular expression pattern
  • Find a file
  • Find all files including a file

Tutorials:

Related SO questions:

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top