Found 1 entry, viewing 1 through 1.
Full Code Navigation: Cscope
Not long ago we discussed ctags here, and how it can quickly let you navigate your code, helping you find definitions of variables and functions. You'll have taken notice that sometimes you want to navigate in the reverse: where is this function called, who includes this file, etc. Cscope builds a database of such information (and more). We can include it with ctags and have very impressive code searching.
If you want a detailed introduction, there is a great cscope and vim tutorial available. I'll just give you a quick run down of using it.
At the base of your C or C++ source tree run
cscope -R -b -q
Add this to your
.vimrc
:if has("cscope") set cst set csto=1 if filereadable("cscope.out") cs add cscope out endif endif
Start Vim in the same directory as the generated
cscope.out
file. (If not, just ...