I like to run search engine on code, and if you aren't I recommend it (especially if you code in a team and you don't have all the lines of code in your head). When I vaguely remember some variable name or class name, but I can't remember where I saw it, I just run the search. Pre-indexed full-text search system is way faster than grep
ing your entire codebase.
Which full-text search system do you recommend to index source code?
- Easy setup is a plus
- Good literal handling (e.g. "UPPER_CASE" symbols {}#$) is a plus
- Good search options (e.g. AND, OR, -foo, site:thisproject) are plus
- Code formatting is a plus
- Non-ascii encoding handling is a plus
- In-house web-access is required
I use Hyper Estraier, but Namazu is also well-known.