Skip to content

GitHub Code Search

Update: GitHub Codesearch is now located at github.com/search Today we're unveiling a new feature on GitHub that we've been working on for a bit now that lets you search through…

Author

Update: GitHub Codesearch is now located at github.com/search

Today we’re unveiling a new feature on GitHub that we’ve been working on for a bit now that lets you search through nearly all the public source code on the site (which is a lot).

GitHub Codesearch can be found at github.com/codesearch and will let you type in anything you’re looking for in source code and get highlighted results of any files in our public repositories that match. You will also get a sidebar with the facet counts of language breakdown of the results and repository breakdowns.

You can also search through any specific language, if you’re looking for something specific by selecting that language in the dropdown:

You can also refine your search results by clicking on one of the languages or repositories listed in the sidebar to drill down to only those results:

There are a pretty good number of things you can do with this, and we hope you enjoy it. We’ll be incorporating this functionality into more aspects of the website soon (search from the front page, search through a users repositories from their user page, search through a repos code from the project page, etc). Let us know if you find any kinks or can think of any particularly interesting application of this technology that we could incorporate into the site.

We hope you like it!

Explore more from GitHub

Product

Product

Updates on GitHub products and features, hot off the press.
The ReadME Project

The ReadME Project

Stories and voices from the developer community.
GitHub Copilot

GitHub Copilot

Don't fly solo. Try 30 days for free.
Work at GitHub!

Work at GitHub!

Check out our current job openings.