3 ms·
cscope and ctags are language syntax dependent searching tools for c-like programming languages. They let you search specifically for all instances of a functio
by astine 12y ago
cscope and ctags are language syntax dependent searching tools for c-like programming languages. They let you search specifically for all instances of a function names 'foo' for example. Ack is instead just a normal pattern matcher like grep except that it has some cleverness by which it knows not to search certain file types and directories. It will return all lines which match a string rather than just variable names or functions.
- bch 12y agocscope lets you search for arbitrary text strings and egrep patterns as well. "The fuzzy parser supports C, but is flexible enough to be useful for C++ and Java, and for use as a generalized 'grep database' (use it to browse large text documents!)"[0] Exuberant Ctags supports 41 languages[1], incl. javascript, Tcl, Ruby, TeX, awk, etc. I was wondering if there are obvious ack killer features or areas where it's remarkably superior. [0] http://cscope.sourceforge.net/ http://cscope.sourceforge.net/ [1] http://ctags.sourceforge.net/languages.html http://ctags.sourceforge.net/languages.html
- petdance 12y agoThey solve different problems. Ctags and cscope index a corpus of source code, usually tied into another tool, like Ctrl-] in vim. ack searches the files every time.