Sourcegraph docs Sourcegraph docs

Sections

  • Getting started
    • Product tour
    • Personalization
  • Code search
    • Tutorials
    • How-to guides
    • Explanations
    • Reference
  • Code intelligence
    • Tutorials
    • How-to guides
    • Explanations
    • Reference
  • Campaigns
    • Quickstart
    • Explanations
    • Tutorials
    • How-to guides
    • References
  • Integrations
    • Browser extension
    • Editors
    • Browser search engine
  • Extensions
  • CLI
    • Quickstart
    • Explanations
    • How-to guides
    • References
  • Adopting
  • Administration
    • Install
    • Upgrade
    • Configuration
    • Code hosts
    • User authentication
    • Extension registry
    • Observability
    • FAQ
    • Troubleshooting
  • Development
    • Getting started
    • How-to guides
    • Background information

  • ★ Quick install
  • ★ Search query syntax
  • ★ GraphQL API

External

  • About Sourcegraph
  • Sourcegraph.com

Code intelligence

On this page:

  • Getting started
  • Explanations
  • How-tos
  • Tutorials
  • References
Edit this page
Home / code_intelligence

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.

★ Introduction to code intelligence

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.

Explanations

  • Search-based code intelligence
  • Precise code intelligence
  • Features
    • Hover tooltips
    • Go to definition
    • Find references
    • Symbol search
  • Writing an indexer

How-tos

  • Add a GitHub repository to your Sourcegraph instance
  • LSIF quickstart guide
  • Add LSIF to many repositories
  • Adding LSIF to CI workflows
  • Index a Go repository
  • Index a TypeScript or JavaScript repository
  • Index a C++ repository

Tutorials

  • Index a popular Go repository
  • Index a popular TypeScript repository

References

  • Sourcegraph recommended indexers
  • LSIF.dev
  • About Sourcegraph
  • Sourcegraph.com
  • Code (GitHub)
  • Terms
  • Security
  • Privacy