cscope

今天在酷!学园看到这样一个问题:cscope 使用问题 ,很好奇cscope是什么东西,后来Google之后才知道这个原来是用vim来trace source code的,它拥有的功能如下:

1.Allows searching code for:

  • all references to a symbol
  • global definitions
  • functions called by a function
  • functions calling a function
  • text string
  • regular expression pattern
  • a file
  • files including a file
  • 2.Curses based (text screen)

    3.An information database is generated for faster searches and later reference

    4.The fuzzy parser supports C, but is flexible enough to be useful for C++ and Java, and for use as a 5.generalized ‘grep database’ (use it to browse large text documents!)

    6.Has a command line mode for inclusion in scripts or as a backend to a GUI/frontend

    7.Runs on all flavors of Unix, plus most monopoly-controlled operating systems.

    也有中文的教学:Using Cscope with Vim — translated to Chinese (external link)

    我也注意到它的DOS/Windows的支援,