TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Good source code search engines?

20 pointsby supersanover 8 years ago
I recently saw an article on HN about how to use GitHub&#x27;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&#x27;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&#x27;ve helped me). I couldn&#x27;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&#x27;ve find none so far. I&#x27;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&#x27;s search that can increase coding productivity (I think searching SO is also very useful).<p>[1] https:&#x2F;&#x2F;github.com&#x2F;search?l=php&amp;q=createEnvironment+ElasticBeanstalkClient&amp;ref=searchresults&amp;type=Code&amp;utf8=%E2%9C%93

4 comments

RmzHover 8 years ago
<a href="https:&#x2F;&#x2F;searchcode.com" rel="nofollow">https:&#x2F;&#x2F;searchcode.com</a> <a href="http:&#x2F;&#x2F;www.krugle.com" rel="nofollow">http:&#x2F;&#x2F;www.krugle.com</a>
评论 #12381694 未加载
prodicusover 8 years ago
Off topic but how would you build something like this from scratch. Just for the learning part of it. Any examples?
评论 #12386515 未加载
评论 #12386184 未加载
ekrover 8 years ago
I&#x27;ve recently ran into debian code search again, <a href="https:&#x2F;&#x2F;codesearch.debian.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;codesearch.debian.net&#x2F;</a>. Built on top of Russ Cox&#x27;s Code search (<a href="https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;codesearch" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;codesearch</a>), and quite well documented.<p>Can&#x27;t say I&#x27;ve used it much, but it gives a few pointers into how you could build a better one yourself.
blkhp19over 8 years ago
There&#x27;s a startup solving this! <a href="https:&#x2F;&#x2F;sourcegraph.com" rel="nofollow">https:&#x2F;&#x2F;sourcegraph.com</a>
评论 #12386202 未加载