Coders, Search For Code With Google Code Search

Oct 5, 2006 • 7:52 am | comments (2) by twitter Google+ | Filed Under Other Google Topics

google-codesearch.gifSearch engines for searching code bases is nothing new, but this time Google did it with Google Code Search.

Google Code Search helps you find function definitions and sample code by giving you one place to search publicly accessible source code hosted on the Internet. With Google Code Search, you can:
  • Use regular expressions to search more precisely
  • Restrict your search by language, license or filename
  • View the source file with links back to the entire package and the webpage where it came from

Obviously, it only searches "publicly accessible source code" but there is plenty of that available. Specifically, you can search within archives (.tar.gz, .tar.bz2, .tar, and .zip), CVS repositories and Subversion repositories. There are advanced restrict functions that Google allows you to use to find your code of choice, to only search PHP you can use this command, [lang:php].

Yes, there is an API for this product and you can submit your code to the index as well. Hey, search engine optimization for your code. Outsourcing firms, you may have a niche or vertical creep strategy at your finger tips here soon.

Forum discussion at WebmasterWorld & Cre8asite Forums & DigitalPoint Forums.

Previous story: When Does Google Send You To The Personalized Home Page


Google Success

10/06/2006 04:57 pm

Well, the idea of Code Search is very good and programmers will definitely welcome that. However, when I tested the Google Code search, I was not so impressed by the search results. The search results lack the information which will prompt us to click the target website. One will have to go through numerous websites before finding a useful website.

Ted Kemper

05/14/2014 03:06 pm

-->Thought I'd one up you after 8 years. Must be a record :)

blog comments powered by Disqus