vimrc will set up Vim to use cscope more efficiently:Ĭommand -nargs=0 Cscope cs add $VIMSRC/src/cscope.out $VIMSRC/src Reset: Reinit all connections (Usage: reset)Īdding the following snippet to your. The output from :help :cscope says it all:Īdd : Add a new database (Usage: add file|dir )įind : Query for a pattern (Usage: find c|d|e|f|g|i|s|t name)ĭ: Find functions called by this function With the proper configuration, "standard" include files of your compiler are automatically searched along with your sources. Using Cscope, you can search for identifier or function definitions, their uses, or even any regular expression. While Cscope comes with its own stand-alone interface, Vim provides the capability to navigate code without ever leaving the editor. Tip 1638 Printable Monobook Previous NextĬscope is a very powerful interface allowing you to easily navigate C-like code files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |