Cscope is a code searching application originally written for searching C code bases. Cscope is useful for searching many other code bases as well: C++, Java, Python, etc.
Questions tagged [cscope]
266 questions
13
votes
2 answers
cscope like functionality for C++ (using vim)
Is there any utility or plugin which provides cscope like functionality for C++. I am looking for
all references to a symbol
global definitions
functions called by a function
functions calling a function
files including a file

Yogesh Arora
- 2,216
- 2
- 25
- 35
13
votes
5 answers
How to bring color to cscope output in vim?
I am using vim 7.4. cscope output in vim is all white. can it be made more colorful?
I tried cecscope, which uses quickfix to bring color to vim. But the output of it is not small-screen friendly. it is not that useful when using a laptop.
so is…

Alex
- 1,737
- 2
- 20
- 35
11
votes
1 answer
How to search the tags file and load it automatically when vim start up
Vim is my favorite editor, when I open a php or python file in vim, the first command is:
set tags=../../../tags
or
set tags=../../tags
I think vim can do this automatically:
first search ./tags, if it is exists, set it, if not exists
search…

pvd
- 1,303
- 2
- 16
- 31
11
votes
3 answers
Tag navigation in vim
With cscope integrated Vim, I can navigate back using the ctrl-T and see the current tag stack position using :tags . But how do I go forward in the stack? The only thing I could find from the man pages is to go to the function definition (like…

vpillai
- 374
- 1
- 3
- 15
11
votes
2 answers
cscope: How to use cscope to search for a symbol using command line?
All the cscope tutorials I found online talk about how to use the interactive mode of cscope to search for symbols in editors such as vim and emacs. But I think it should be possible to issue a command in terminal to do something like
cscope -d…

kakyo
- 10,460
- 14
- 76
- 140
10
votes
1 answer
Show multilayer function relationship by cscope in vim
I know source insight can show multilayer function relationship in one window.
For example, we have four functions as below
void example_A()
{
example_B();
}
void example_B()
{
example_C();
}
void example_C()
{
example_D();
}
void…

Iverson Hsieh
- 181
- 1
- 10
10
votes
6 answers
How to let cscope use absolute path in cscope.out file?
Everytime after load a cscope.out in Vim, I need to change Vim's "pwd" to the same directory as cscope.out file is under, which might be due to that cscope use relative path when generating tag file. So if there is a way to force cscope to use…

Haiyuan Zhang
- 40,802
- 41
- 107
- 134
10
votes
1 answer
scope vs ctags in terms of features
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…

vehomzzz
- 42,832
- 72
- 186
- 216
9
votes
4 answers
How to use cscope with paths that contain spaces
There are some folder that contains space, and as a result, those folders can not be indexed using cscope.
Can i ask you for help to solve this,or any suggestion.
thanks
Julius
Thanks for your reply.
My steps to use cscope like the following
find…

julius
- 91
- 1
- 3
9
votes
1 answer
How to set vim as default cscope editor?
cscope opens my files in vi. Is there a way to change it so that it opens files in vim instead ?
Edit: I tried:
export CSCOPE_EDITOR=vim
For some weird reason, if I type :help on the file opened, it shows vim help which indicates it is opened…

brokenfoot
- 11,083
- 10
- 59
- 80
9
votes
1 answer
How to make cscope display full file paths during search
When I search for a C symbol or global definition using cscope, it displays the file-names and line numbers. I would like to see the full file-paths so that I can jump to my arch specific file. For example, when searching for global definition of…

manav m-n
- 11,136
- 23
- 74
- 97
8
votes
1 answer
generate call hierarchy graph with ctags
Is there anyone who knows how to generate call hierarchy graph with ctags and cscope? I need to run the commands in the terminal and redirect the output to a file, rather than do it in vim.

Jason
- 131
- 1
- 7
8
votes
1 answer
How to put cscope output in Vim quickfix window?
I want to redirect output from cscope to Vim quickfix window. The glue part is easy enough, but I currently stuck at errorformat. Here's an example from cscope output (cscope -L -1 bar):
Format: "filename scope linenumber sourceline"
Example:…

Thanh DK
- 4,257
- 3
- 23
- 18
8
votes
1 answer
Emacs/CEDET. Multiple projects and code completion
I've setup emacs 23.1.50.1 with CEDET 1.0 and ECB 2.40 (heavily inspired by Alex Otts setup at http://github.com/alexott/emacs-configs/blob/master/rc/emacs-rc-cedet.el and his gentle introduction to Cedet (…

anr78
- 1,308
- 2
- 17
- 31
8
votes
3 answers
Does cscope has search history or search query stack feature?
I usually dig in the c source code with cscope from method to method more than 4-5 level and I have to step between the methods back and forth.
How can I see the search history in cscope so I don't have to remember the previous method name.
or it…

teerapap
- 5,303
- 7
- 33
- 40