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
  • Batch Changes
    • 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
    • How-to guides
  • 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
  • How-tos
  • Tutorials
  • Explanations
  • 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 LSIF supported languages 📚 API docs for your 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

  • 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

Tutorials

  • Manually index a popular Go repository
  • Manually index a popular TypeScript repository

Explanations

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

References

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