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
146
votes
4 answers
cscope or ctags why choose one over the other?
I primarily use vim / gvim as an editor and am looking at using a combination of lxr (the Linux Cross Reference) and either cscope or ctags for exploring the kernel source. However, I haven't ever used either cscope or ctags and would like to hear…

Robert S. Barnes
- 39,711
- 30
- 131
- 179
113
votes
5 answers
Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctags
I work on C++ projects, and I went through Alex Ott's guide to CEDET and other threads about tags in StackOverflow, but I am still confused about how Emacs interfaces with these different tag systems to facilitate autocompletion, the looking up of…

Amelio Vazquez-Reina
- 91,494
- 132
- 359
- 564
24
votes
2 answers
VIM: More precise C/C++ code parsing solutions?
Pre:
I've been working in VIM for like a year already. Lots of great things: combinations, scripts. Whenever I'm editing something in a different editor, I feel sluggish/uncomfortable without VIM's navigation.
The problem:
The thing that really…

Andrew_Lvov
- 4,621
- 2
- 25
- 31
24
votes
2 answers
Pin Emacs buffers to windows (for cscope)
For my day job, I live in Emacs. Utterly. I also have become pretty dependent on CScope to help me find things in the code.
Normally, I have 2 windows in a split (C-x 3):
alt text http://bitthicket.com/files/emacs-2split.JPG
And I use the right…

Ben Collins
- 20,538
- 18
- 127
- 187
23
votes
5 answers
update cscope db from vim
I use cscope with vim.
When doing large edits for several files, cscope will report old line numbers for changed files.
How can I rebuild cscope db from vim without losing
opened tabs/windowses in vim
connection with cscope engine
Thanks

osgx
- 90,338
- 53
- 357
- 513
23
votes
1 answer
how can I display all function name from cscope database?
I am trying to find a way to dump ALL the functions name and it's path from cscope database. Is there a way to do that from cscope CLI?
Note: the cscope source code is available for download.

Kan Wu
- 233
- 2
- 5
19
votes
6 answers
Using cscope to browse Python code with VIM?
Has anyone managed successfully using cscope with Python code? I have VIM 7.2 and the latest version of cscope installed, however it doesn't get my code's tags correctly (always off by a couple of lines). I tried the pycscope script but its output…

Eli Bendersky
- 263,248
- 89
- 350
- 412
18
votes
1 answer
emacs intellisense
I know this has been discussed a lot of times but is there any nice how-to for c/c++ intellisense in emacs? I have never been able to set up cedet properly.
Right now I am working on a maintenance project with a huuge code base and it is very…

arun kumar
- 269
- 1
- 3
- 8
17
votes
9 answers
Alternatives to Ctags/Cscope with Objective-c?
Are there any alternatives to ctags and cscope with Objective-c support. This does pertain to cocoa development, so inevitably it seems I will be using Xcode (and probably should). I was just wondering what are my Vim options.
Maybe there is some…

esiegel
- 1,773
- 2
- 19
- 31
16
votes
6 answers
vim cannot connect to cscope database
I have opensuse 11.4 installed. Vim is version 7. Now I normally use it to browse the linux kernel source. So I generated the cscope database inside a directory within my home folder i.e. /home/aijazbaig1/cscope_DB/ and I got 3 files viz.…

Aijaz Baig
- 161
- 1
- 1
- 3
16
votes
3 answers
How to use cscope?
I am using cscope to get familiar with all the keywords used in socket programming. I went to the directory with c files. I used cscope. and then I searched for AF_INET. I got this:
#define AF_FILE PF_FILE
#define AF_INET …

narayanpatra
- 5,627
- 13
- 51
- 60
15
votes
6 answers
More accurate alternative/workaround to ctags/Cscope for PHP?
I know that it is possible to use Ctrl+] to jump to a definition in Vim and this can work in conjunction whith either ctags or Cscope. I am looking for a more accurate alternative to both ctags and Cscope when working PHP. Sometimes there are…

still_dreaming_1
- 8,661
- 6
- 39
- 56
14
votes
5 answers
Generate Call-Tree from cscope database
I want to generate Full and Partially Call Trees from cscope database of c and c++ projects in Linux.
The project is rather large, so it can be not easy to work with the full call tree of project, so I want to limit call tree generation with…

osgx
- 90,338
- 53
- 357
- 513
13
votes
2 answers
How to find struct member uses with cscope and ignore local variables?
I'm using cscope for a large project with vim, but without the vim mappings (they froze vim for some weird reason). I'm using cscope commands from within vim, and I want to be able to find uses of structure members throughout the code.
Suppose I…

Diego Medaglia
- 253
- 2
- 9
13
votes
3 answers
How to fix duplicate cscope ? is it a better way?
It is several years I am programming with vim and I used ctags.
I am working with a reasonably large C/C++ package and I need to find definition of functions. I usually use grep + ctags.
Recently I tried to use cscope instead of ctags and installed…

Aznaveh
- 558
- 8
- 27