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.
- 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.
- Define saved search scopes for easier searching.
- 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 through your dependencies.
- Search details
- Sourcegraph Cloud
- Search tips