Searching for C# code using the “CS2” library/utility

Posted: (EET/GMT+2)

 

While programming during the years, you accumulate a healthy set of code. Oftentimes, you find yourself asking: "I had this routine doing X two years ago, where is it"? For these kind of questions, it's essential to have a good search tool for your source code.

Personally, I'm using UltraEdit to search my whole collection of source code, but sometimes, a plain text match is not what I'm after. In these cases, I'm using an older open-source tool called "CS2", or "C# Code Search".

This nice library or utility allows to search for not just basic text strings anywhere in the code, but also with better semantics like functions, classes, namespace and comments.

The project pages are on Google Code, and are available under the MIT License.

Happy hacking!