Skip to content

Latest commit

 

History

History
136 lines (101 loc) · 6.84 KB

File metadata and controls

136 lines (101 loc) · 6.84 KB
<style> .markdown-body h2 { margin-top: 2em; } .markdown-body ul { padding-left: 1em; } .markdown-body ul li { margin: 0.5em 0; } .markdown-body .lead-screenshot { float: right; display: block; margin: 1em auto; max-width: 500px; margin-left: 0.5em; border: 1px solid lightgrey; border-radius: 10px; } </style>

Code intelligence

Navigate your code with tooling that understands it

Code Intelligence adds advanced code navigation to Sourcegraph, enabling developers to explore code by

  • jumping to definitions
  • finding references
  • listing implementations
  • browsing symbols defined in current document or folder
  • navigate dependencies
  • documentation in hover tooltips

Code Intelligence is made up of multiple features that build on top of each other:

Code Intelligence for your code

Here's how you go from search-based code intelligence to automatically-updating, precise code intelligence across multiple repositories and dependencies:

  1. Navigate code with search-based code intelligence and Sourcegraph extensions:

    Included in a standard Sourcegraph installation and works out of the box!

  2. Start using precise code intelligence by creating an LSIF index of a repository and uploading it to your Sourcegraph instance:

    See the tutorials for more step-by-step instructions.

  3. Optional: automate the uploading of LSIF indexes by adding LSIF indexing and uploading to your CI setup.

  4. Get automatic precise code intelligence by enabling auto-indexing which makes Sourcegraph automatically index the your repositories and enable precise code intelligence for them.

  5. Setup auto-dependency indexing to navigate and search through the dependencies used by your code:

Once setup, code intelligence is available for use across popular development tools: