Sourcegraph: the best way to read code just got better
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
And today, it gets even better.
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.
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:
Mouse-over tooltips are a lot speedier, too. Hover over any token for additional context like type signatures and docs.
If you want to see how something is used, you can quickly find and flip through all references. The interface is quick and clean:
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.
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.
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!
About the author
Quinn Slack is the CEO and co-founder of Sourcegraph, the code intelligence platform for dev teams and making coding more accessible to more people. Prior to Sourcegraph, Quinn co-founded Blend Labs, an enterprise technology company dedicated to improving home lending and was an egineer at Palantir, where he created a technology platform to help two of the top five U.S. banks recover from the housing crisis. Quinn has a BS in Computer Science from Stanford, you can chat with him on Twitter @sqs.