I recently saw an article on HN about how to use GitHub's search as a starting point when writing code. That indeed is a great trick and it has already helped me save a lot of time.<p>Unfortunately, GitHub's search is very lacking and most of the time instead of showing relevant search results it just shows lots and lots of duplicates for the main library.<p>For example, I was searching for this[1], but the search results show the Main SDK files and not the files created with the SDK (which is what would've helped me). I couldn't find a way to suppress the files or duplicate searches.<p>So I tried looking for a good source code search engine and I've find none so far. I've tried almost everything I could find on Google and Quora but most of these services are either discontinued (Google code, etc) or very bad.<p>So, I was wondering what you guys use to search source code? And are there any other tricks like GitHub's search that can increase coding productivity (I think searching SO is also very useful).<p>[1] https://github.com/search?l=php&q=createEnvironment+ElasticBeanstalkClient&ref=searchresults&type=Code&utf8=%E2%9C%93
I've recently ran into debian code search again, <a href="https://codesearch.debian.net/" rel="nofollow">https://codesearch.debian.net/</a>. Built on top of Russ Cox's Code search (<a href="https://github.com/google/codesearch" rel="nofollow">https://github.com/google/codesearch</a>), and quite well documented.<p>Can't say I've used it much, but it gives a few pointers into how you could build a better one yourself.