Search code across all your repositories and code hosts
A recently published research paper from Google and a Google developer survey showed that 98% of developers consider their Sourcegraph-like internal code search tool to be critical, and developers use it on average for 5.3 sessions each day, primarily to (in order of frequency):
- find example code
- explore/read code
- debug issues
- determine the impact of changes
Sourcegraph code search helps developers perform these tasks more quickly and effectively by providing fast, advanced code search across multiple repositories.
Get Sourcegraph on your code.
A single-tenant instance managed by Sourcegraph.
Sign up for a 30 day trial for your team.
Get free trial now
New to search? See search examples for inspiration. Intro to code search video Watch the intro to code search video to see what you can do with Sourcegraph search. Learn the search syntax Learn the search syntax for writing powerful search queries.
- Search features
- Use regular expressions and exact queries to perform full-text searches.
- Perform language-aware structural search on code structure.
- Search any branch and commit, with no indexing required.
- Search commit diffs and commit messages to see how code has changed.
- Narrow your search by repository and file pattern.
- How our Smart Search query assistant works.
- Use search contexts to search across a set of repositories at specific revisions.
- Curate saved searches for yourself or your org.
- Use code monitoring to set up notifications for code changes that match a query.
- View language statistics for search results.
- Search details
- Search tips
- Switch from Oracle OpenGrok to Sourcegraph
- Create a saved search
- Create a custom search snippet
- Using and creating search contexts
- Exhaustive search
- How to create a search context with the GraphQL API