Coders, Search For Code With Google Code Search

Oct 5, 2006 • 7:52 am | comments (2) by | 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
Ninja Banner
 
blog comments powered by Disqus