We’re excited to announce more improvements to the Sourcegraph Chrome extension. More than 10,000 developers use it to browse and search code on GitHub with the power of an IDE.

In addition to the new features described below, the core functionality is faster and smoother: whenever you're viewing a file or reviewing a pull request, you can hover over code to see type signatures and documentation in a tooltip. Clicking will anchor the tooltip and let you jump to a definition, find references, or initiate a full-text search.

Advanced code search

Our extension now provides fast, multi-repository grep search with regular expressions. Just select any code inside a GitHub repository and use the Sourcegraph tooltip to execute a search. Search results for supported languages have code intelligence, and every result file has inline authorship and blame information.

If you prefer to stay on GitHub when you search, check "Add Sourcegraph search to GitHub search menu" in the options panel (which you open by clicking the extension’s icon). To search, just use the normal GitHub search field.

Go to definition

In supported languages, you can go to the definition of a symbol. You can even jump to a definition across repositories.

Find References

You can also see all callers of a function, property accesses, etc., just like in a powerful IDE.

View on Sourcegraph

By clicking the "Sourcegraph" button on a repository homepage or while viewing a file, you can now jump to Sourcegraph. (Many users asked for this because going to Sourcegraph is the first thing they do when they get to a repository on GitHub!)