Code intelligence

Code intelligence provides advanced code navigation features that lets developers explore source code and displays rich metadata about functions, variables, and cross-references in their code. Visit the features page to learn more or jump to a section for a specific feature:

Code intelligence is enabled by Sourcegraph extensions and provides users with two different types of code intelligence; basic and precise. Basic is our search-based code intelligence and works out of the box with all of the most popular programming languages via extensions. Precise code intelligence is an opt-in feature that is enabled in your admin settings and requires you to upload LSIF data for each repository to your Sourcegraph instance. Once setup is complete on Sourcegraph, precise code intelligence is available for use across popular development tools:

Basic vs Precise

Basic code intelligence is available by default on all Sourcegraph instances and provides fuzzy code intelligence using a combination of ctags and search, it is great for immediate access to code intelligence features but due to its dependance on text-based search its results are considered imprecise. Precise code intelligence returns metadata from a knowledge graph that is generated through code analysis. The precomputation step used to generate the graph results in lookups that are fast and have a high degree of accuracy. To learn more about how to work with each type of code intelligence visit the basic and precise sections.

Getting started