Code intelligence
Navigate code, with definitions and references
Code intelligence provides advanced code navigation features that let developers explore source code. It displays rich metadata about functions, variables, and cross-references in the code.
Getting started
Install the browser extension
Add code intelligence to your code host and/or code review tool by installing the Sourcegraph browser extension.
Demo video
Watch the code intelligence demo video to see it in action on GitHub.
Try on public code
Interested in trying code intelligence out on public code? See this sample file on Sourcegraph Cloud.
How-tos
- Configure data retention policies
- Add a GitHub repository to your Sourcegraph instance
- Index a Go repository
- Index a TypeScript or JavaScript repository
- Index a C++ repository
- Index other languages
- Add LSIF to many repositories
- Adding LSIF to CI workflows
- Experimental Enable auto-indexing
- Experimental Configure auto-indexing
Tutorials
Explanations
- Search-based code intelligence
- Precise code intelligence
- Features
- Precise code intelligence uploads
- Writing an indexer
- Experimental Auto-indexing
- Experimental Auto-indexing inference