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
0
votes
1 answer
Vim can't properly be launched by cscope
I use cscope on a large project, 7zip.
I generate the cscope database and run the command cscope -d, then I search for the C symbol main, I choose one, press Enter, but I get this:
cchaney@localhost 7zipsources$ cscope -d
Error detected while…

MMMMMCCLXXVII
- 571
- 1
- 8
- 23
0
votes
2 answers
cscope error while loading shared libraries
While running cscope tool on linux OS, I got below error.
cscope: error while loading shared libraries: libncurses.so.4: cannot open shared object file: No such file or directory
I searched for libncurses.so.4 lib in /usr/lib, it doesnot exist but…

Pravin Junnarkar
- 800
- 1
- 5
- 13
0
votes
1 answer
Ctags doesn't display line number with iterm2
I switched to iterm2 on my Mac last week. However I found there was an issue when I used cscope with iterm2. The following is the screenshot of the good and bad case.
Good case: Use cscope with Mac default terminal
Bad Case: Use cscope with iterm2…

Zack
- 1,205
- 2
- 14
- 38
0
votes
1 answer
Is there any way to make Sublime Text 2 to auto complete structure children in C?
For example, I have a header file , a.h
struct f
{
int aaaa;
int bbbb;
int cccc;
};
And a C file, a.c
#include "a.h"
int abcd;
void main()
{
struct f abcd;
abcd.a
}
What i want is, when i type abcd.a, i hope it will…

demonguy
- 1,977
- 5
- 22
- 34
0
votes
1 answer
Cscope output all parameters
There is a limitation of 1 line per cscope entry, e.g.
type func(type param1, type param2,
type param3, type param4)
will give
type func(type param1, type param2,
cscope entry.
I need cscope to output all parameters in function…
user4247422
0
votes
0 answers
vim script about cscope can't be execute
Here is my code
let $CSCOPE_DB = "/home/simon/cscope"
if has("cscope")
set csprg=/usr/local/bin/cscope
set csto=0
set cst
set nocsverb
" add any database in current directory
if filereadable("cscope.out")
cs add cscope.out
" else add database…

simon_xia
- 2,394
- 1
- 20
- 32
0
votes
1 answer
Cscope relative path with parent directory display error
I am creating a cscope database from cscope.files which has reference to files in current and parent directories, say the cscope.files content be
foo\file1.c
..\..\foo1\file2.c
When I search for a text/variable from cscope input field, the display…

srv
- 433
- 9
- 26
0
votes
1 answer
cscope how to get path path from environment variable
I have a cscope database path in environment variable CSCOPE_DB and vim works fine with it.
However, I would like cscope to also use this database when I use it without vim.
How can I do this ? I couldn't find any parameter that would allow me to…

L Lawliet
- 2,565
- 4
- 26
- 35
0
votes
1 answer
cscope setting with vim
I am trying to incorporate cscope settings with vim to get an IDE like functionality.
I am using the popular cscope_maps.vim file http://cscope.sourceforge.net/cscope_maps.vim
in order to get these settings.I copied these settings to my vimrc file…

Satwik Krishna
- 51
- 5
0
votes
2 answers
vimrc commands not applying with cygwin and cscope combination on windows 7
I have installed cygwin and cscope on my windows 7 machine. I created a .vimrc file in $HOME directory with the following settings:
syntax on
set hlsearch
set ic
When i ran cscope, selected a file and tried to find some text, it is not…

ChandanK
- 607
- 7
- 10
0
votes
2 answers
Copy vim ctags and key mapping to and
I am browsing long source code using vim+cscope+ctags. I find it really cumbersome to always press and as the keys are located far apart. I want to copy these key bindings to and so that both the key bindings work in VIM.

manav m-n
- 11,136
- 23
- 74
- 97
0
votes
1 answer
Cscope Syntax hightlight search within search
I am using CSCOPE for my project and I have few question.
1) Can I color the search result (mostly when I serach using
":cs f s " i.e. within the open file.
2) Is there a way to search within search? Like I search "ret_val" and it gave 1000 result,…

manpatha
- 489
- 4
- 11
0
votes
1 answer
cscope basic key behavior - can it be configured? (NOT vim related)
I'm using Cscope 15.7a on Mac.
1) To go to a different search field, I have to press return. I could have sworn in the past I didn't get "[A" and "[B" in the output if I used the up/down keys. And maybe TAB also moved between fields.
2) When I get…

Sridhar Sarnobat
- 25,183
- 12
- 93
- 106
0
votes
1 answer
Open cscope results in the same buffer
This might seem to be a very very stupid question.
But for the past few years I have been using vim and cscope on the terminal, with some screen to make life a bit bearable.
I have just started to learn emacs and it is much more satisfying to use…

user3273493
- 11
- 2
0
votes
2 answers
Run a script on a file before opening a file in vim
I have to work in a large C codebase that is very old (decades) and suffers multiple-author syndrome. Different coding styles (spaces vs tabs; curly braces on new line, same line, new line indented etc.) are all existing in the codebase. For…

Sankar
- 6,192
- 12
- 65
- 89