Questions tagged [cscope]

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.

Cscope home page

266 questions
5
votes
2 answers

ctags best practicies

I'm working on +1M LOC C/C++ project on Solaris (remote, via VNC or SSH). I have a daily updated copy of source code on my local machine too (Windows, just for browsing code). I use VIM and ctags combo (on both Solaris and Windows) but I'm not happy…
Nazgob
  • 8,502
  • 4
  • 40
  • 42
5
votes
2 answers

cscope: ctrl + ']' does not work

I just installed cscope-15.8b, then go to linux-next folder, run "cscope -R", after build the tags, then open a file through "Find this file" // so far so good. Now if I want to go to a symbol's defination, by ctrl + ], it will throw error: "E433:…
Howard Shane
  • 926
  • 13
  • 28
5
votes
4 answers

c++, cscope, ctags, and vim: Finding classes that inherit from this one

In a rather large code base with a few layers is there a way in vim or from the command line to find all classes that are derived from a base class? grep is an option but can be slow since grep does not index.
Matthew Hoggan
  • 7,402
  • 16
  • 75
  • 140
5
votes
2 answers

Can ctags differentiate between different symbols with same name?

I am trying to use vim together with ctags and/or cscope and it works quite nice but I have some problems where ctags jumps to the wrong symbol. For example in the code below, if I place my the cursor over symbol "a" in main() and hit Ctrl+] to go…
Olppah
  • 790
  • 1
  • 10
  • 21
5
votes
4 answers

Code navigation in vim and emacs

The IDE feature that I miss the most in emacs and vim are code navigation and find usages. Both of these editor have the following similar features for them: Tags - identifiers from specified files are indexed and when you press shortcut on a word…
Konstantin Solomatov
  • 10,252
  • 8
  • 58
  • 88
4
votes
1 answer

cscope error when trying to use ctags in vim

I have generated ctags for my projects: ctags -f /home/grae/tags --recurse --langmap=C++:.C.h.c.cpp.hpp.inl --languages=C++ --extra=+q --fields=+iaS --c++-kinds=+p --verbose framework/ modules/ /usr/include/ I then added the tags to .vimrc: set…
Graeme
  • 4,514
  • 5
  • 43
  • 71
4
votes
1 answer

How to fix 'ctags ctrl-t in gvim is not working tab basis'

I work on gvim editor. I use multiple tabs in gvim to open multiple files. I have ctags set up in my code area. I use 'ctrl ]' to jump to definition of a function call in one tab and then 'ctrl t' to return to the function call. Now if I type 'ctrl…
Ranju
  • 76
  • 13
4
votes
2 answers

How to install cscope_maps with vim-plug?

I'm using vim-plug to manage my vim (version 7) plugin dependencies and trying to leverage these cscope key mappings per this tutorial. Is this something I have to install outside of the plugin system by just copying and pasting it to the…
tarabyte
  • 17,837
  • 15
  • 76
  • 117
4
votes
1 answer

Source code breadcrumbs in Vim

Eclipse has a "breadcrumbs" feature: a little bar that shows which part of the code tree you are now in, e.g. src/java/main > org.foo.bar > AbstractFactoryFactory > InnerDefaultFactory > SomeNeatInnerRunnable > doEverything. Does Vim has something…
dorserg
  • 5,454
  • 3
  • 24
  • 29
4
votes
1 answer

Use vim/cscope to find symbol definition in the linux kernel

I'm using gvim/vim with cscope/ctags to find a symbol definition in the linux kernel. The source code is huge. when I want to search for the structure device with "tag device" command as example, vim will propose me hundred of occurrences. because…
Neo
  • 81
  • 1
  • 8
4
votes
2 answers

How to set window title from vim in tmux window

I use cscope+ctags+vim to browse/edit my source code. I have put set title in my .vimrc to display the filename I am currently editing/reading in the window title bar. This works perfectly in bash. However when I open vim from tmux, the window title…
manav m-n
  • 11,136
  • 23
  • 74
  • 97
4
votes
3 answers

Cscope problem - Search results invisible

I am facing a weird problem. While browsing the C code of a project, the "Find this text string:" output results in a positive match, but the text is invisible [only the search results are invisible and not the menu]. The cursor moves up and down…
Shrinidhi
  • 670
  • 1
  • 8
  • 18
4
votes
1 answer

how to auto load cscope.out in vim

I want to auto load my cscope.out in the subdirectory of my project, so I add this scripts in my .vimrc, which is as follows: set cscopequickfix=s-,c-,d-,i-,t-,e- if has("cscope") set csprg=/usr/bin/cscope set csto=1 set cst set…
Alan
  • 469
  • 10
  • 26
3
votes
3 answers

How to install cscope for Mac OS X 10.6

How can I install cscope for Mac OS X 10.6? I have installed XCode but I don't see cscope in /opt/local/bin.
michael
  • 106,540
  • 116
  • 246
  • 346
3
votes
2 answers

Vim's cscope connection breaks on every GNU screen reattach

I run vim with cscope in my C development environment. I start vim within a GNU screen window on a freebsd 6.3 server and establish the cscope db connection with cs add .... At this stage everything works flawlessly. If I detach the screen session…
jman
  • 11,334
  • 5
  • 39
  • 61