Sunday, April 09, 2006

Move aside ctags

When I first discovered ctags for VIM I started see the real potential of VIM as the only text editor a coder could ever need. ctags are great, you can quickly jump to declarations/definitions of functions, variables, macro's etc. However, today I realized cscope and it's described as ctags on steroids. Lets say you not only want to see where a function is defined, but you want to see where it gets called? No problem. Or what if you want to quickly jump to all files that #include a certain header? No problem. cscope builds a database from your projects source and header files not all that different then ctags. But it's the extra functionality that make this a keeper. From inside VIM type 'help cscope'.

No comments: