Sourcegraph: the best way to read code just got better

By Quinn Slack on October 4, 2016

Today, we’re announcing a new edition of Sourcegraph that makes it even faster and easier to answer your everyday programming questions. If you code in Go, check it out now. If you use another language, sign up for the beta — we’ll have news for you in the next couple of weeks!

If you’re new to Sourcegraph, you can think of it as an online code browser that feels like your favorite IDE. But instead of your local workspace, we’ve already indexed all the Go code in the world. It makes figuring out how to use libraries and understanding existing code a breeze. Here’s what some well-known members of the Go open-source community are saying:

“Sourcegraph is so intuitive that you soon forget you have it, but so useful that if you use GitHub without it, it just feels like all your favorite features are missing.” — Francesc Campoy, developer advocate on the Go core team

“I use Sourcegraph to become more familiar and productive with new libraries really fast. It makes reading code a breeze.” — Matt Holt, author of the popular Caddy web server

“Sourcegraph’s Chrome extension has become indispensable for browsing open-source code.” — Alan Shreve, creator of ngrok and equinox.io

And today, it gets even better.

The new Sourcegraph looks fast and is fast.

We’ve listened to the feedback of thousands of developers using Sourcegraph for both open-source and private code. Sourcegraph is now smarter, faster, and re-designed from the ground up to address the most common pains of reading and understanding code. How exactly?

  • Fast code browsing: Jump-to-def, find-refs, and symbol search are now super fast and reliable—still without any configuration required.
  • A redesigned UI targets the most common tasks and puts every function, class, and important variable just a few keystrokes away.
  • It just works on a lot more repositories, public and private, which means you won’t have to fall back to context-switching to other tools.

All these features are live now, so go check it out. If you use a language other than Go, stay tuned — we’ll have some news for you in the next couple of weeks.

Faster and easier to use than ever before

Here’s the whirlwind tour of usability and performance improvements that we’re shipping today.

Jumping to definition used to take a second or longer. Now it feels almost instant, even if the definition lives in another repository. And if you want to view the def without losing your place in the current file, you can sneak a peek:

Jump to (or peek at) a definition.

Mouse-over tooltips are a lot speedier, too. Hover over any token for additional context like type signatures and docs.

Hover over for context.

If you want to see how something is used, you can quickly find and flip through all references. The interface is quick and clean:

Find refs.

There’s a new quick-launch bar that lets you jump to any symbol or file faster than you can say “global graph of code.” Activate it by clicking “Search” in the upper-right corner or just by typing “/” on any page.

1*kqiD7GzlN5OIrZpjYvNiEQ

Jump to any symbol or file. Activate it with the “/” hotkey.

The same quick-launch bar lets you jump to any repository, so you can quickly hop across different codebases. This is perfect for teams that version microservices in separate repositories or depend on a lot of open-source libraries.

1*wpxr W1t4Sc9bypF0nr6yg

Jump to any repository. Activate it with the “/” hotkey."

You can sign up and auth your private code or try it out on any of these open-source repositories:

  • Go standard library
  • Docker: the open-source container engine
  • Caddy web server: HTTP/2 web server with automatic HTTPS
  • Gogs: open-source Git repository host
  • Syncthing: continuous file synchronization
  • Grafana: gorgeous metric vizualizations and dashboards
  • Hugo: fast and flexible static site generator
  • etcd: distributed, reliable key-value store
  • InfluxDB: timeseries database
  • Cayley: graph database based on Google’s Knowledge Graph
  • Drone CI: open-source CI platform

Save time, code more

Thank you to all the members of the Go community who’ve supported us along the way with feedback, bug reports, and word-of-mouth evangelism.

Whether you’re new to Sourcegraph or are among the tens of thousands of programmers who already use it, this new edition will let you spend less time making sense of code and more time writing it. So check it out now and let us know what you think!