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
3
votes
0 answers
using gnu global in vim with file/folder name contains space
I have used gnu global tags (a tag system like cscope) to trace my c/cpp code for a long time, however, I encounter a problem when there are spaces in folder/file name.
For example, in my project pj1, I use ":cs f s foo" to find all "foo":
pj1/s…

BB Chung
- 201
- 2
- 7
3
votes
2 answers
How to setup cscope for vim?
I am trying to use cscope with vim and I find things a little confusing.
Let’s say I have a project in /home/user/projects/project_foo/. If I go through cscope directly it all works fine (I can find symbols). If I go through vim I get no cscope…

bolov
- 72,283
- 15
- 145
- 224
3
votes
1 answer
can anyone suggest a better ctags solution for me?
I've been using ctags with the vim script below and had no problem doing small projects of my own. But as I got into some big projects, in games written in c++, the recursive command of ctags and cscope seem to be a lot slower than I thought. I…

ksp0422
- 349
- 1
- 4
- 14
3
votes
5 answers
nmap key maps not working with Vim/Cscope
I'm using vim(7.3) with cscope in ubuntu. :cs find commands work fine, but I want to use some key bindings, so I download cscope_maps.vim and install it according to the tutorial here. However, no matter which place I put the vim file in, none of…

eaglesky
- 730
- 2
- 13
- 28
3
votes
1 answer
How can I get cscope results to appear in a split window in gvim7?
I have tried the tutorial here: Vim/Cscope tutorial. After changing the @'s in the cscope_maps.vim file to SPACE I got Ctrl-SPACE s to launch cscope in gVim. However, it takes over the whole window rather than splitting the window for the cscope…

A.E. Drew
- 2,097
- 1
- 16
- 24
3
votes
1 answer
cscope shows error after using vim keyboard maps
I used the keyboard mappings from http://cscope.sourceforge.net/cscope_maps.vim to have keyboard shortcuts in cscope. My maps are
nmap :cs find s =expand("")
nmap :cs find g =expand("")
nmap…

saketrp
- 2,323
- 3
- 16
- 18
3
votes
2 answers
Emacs and cscope with multiple directories
How do I set up cscope in Emacs when my source code lives in multiple directories?
Say I have several paths for my C++ project:
/path/to/my/code (and subdirectories)
/path/to/other/code (and subdirectories)
/path/to/static/linking/include/files…

Amelio Vazquez-Reina
- 91,494
- 132
- 359
- 564
3
votes
1 answer
How to make Emacs always open .c files in the left windows while .h in the right?
I always open three windows when writing C code like this:
|
| 2
1 |_____
|
| 3
|
Window 1 is used for code writing, window 2 is used for cscope, and window 3 is used for header file quick reference.
When…

ZelluX
- 69,107
- 19
- 71
- 104
2
votes
2 answers
How to integrate cscope with vim on Windows?
vim version : 7.1
echo has ('cscope') : 1
I am trying to integrate cscope environment with vim on windows.
I am trying to create a new database through the following command
cscope add C:\Path
I get the error message
E563: stat(C:\Path) error:2
I…

gudge
- 1,053
- 4
- 18
- 33
2
votes
2 answers
Key bindings for a repetitive action in VIM editor
I use Vim + Cscope for coding in a large repository.
With the integration of cscope in Vim, say to find the definition of variable,
i have to type ":cs f g " on vi's command line.
Is there a easy way to map these actions? Like say if i type (Ctrl +…

Sethu
- 556
- 1
- 7
- 18
2
votes
1 answer
how can I use cscope under windows gvim perfectly
Here's my question, I'm trying to use gvim under windows, and I am using cscope to walk through my code, but, when I init the cscope database under vim, there's always a problem.
my code's root folder is: D:\MyCode
and there are many subfolders,…

shengy
- 9,461
- 4
- 37
- 61
2
votes
2 answers
Use CSCOPE to search other type of files
Is it possible to include other type of file in the search result(e.g find the value of CFLAG in the makefile)? Thanks.

user903151
- 55
- 1
- 1
- 6
2
votes
0 answers
cscope not finding functions defined in header file in C
I use cscope to browse the code.
For inline functions defined in the header file, I am getting error E257: cstag: tag not found.
Is there any way to include the header defined functions as well in the ctags?
The questions is already asked Why cscope…

lokesharo
- 305
- 2
- 11
2
votes
1 answer
cscope: How to disable/remove/escape-from "Change this text string" option
Cscope has the following menu options:
Find this C symbol:
Find this global definition:
Find functions called by this function:
Find functions calling this function:
Find this text string:
Change this text string:
Find this egrep pattern:
Find this…

some user
- 876
- 1
- 12
- 26
2
votes
1 answer
how to parse a cscope's database
Is there any way I can parse the cscope's database? I'm using windows, and I can't find any article about the data format of cscope's database, every article is about VIM or EMacs.

shengy
- 9,461
- 4
- 37
- 61