Skip to content

Latest commit

 

History

History
58 lines (32 loc) · 2.21 KB

installing_vs_code.md

File metadata and controls

58 lines (32 loc) · 2.21 KB

Installing Cody in VS Code

Introduction

In this guide, you will:

  • Install the VS Code extension
  • Connect the extension to your Sourcegraph Enterprise instance or Sourcegraph.com account

Requirements

  • A Sourcegraph instance with Cody enabled on it OR a Sourcegraph.com account.

If you haven't yet done this, see Step 1 on the following pages:

Install the VS Code extension

You can install Cody in VS Code in 2 ways:

  • Click the Extensions icon on the VS Code activity bar
  • Search for "Sourcegraph Cody"
  • Install the extension directly to VS Code

Or:

Connect the extension to Sourcegraph

Next, you'll open the VS Code extension and configure it to connect to a Sourcegraph instance (either an enterprise instance or Sourcegraph.com).

For Sourcegraph Enterprise users:

Log in to your Sourcegraph instance and go to settings / access token (https://<your-instance>.sourcegraph.com/users/<your-instance>/settings/tokens). From here, generate a new access token.

Then, you will paste your access token and instance address in to the Cody extension.

For Sourcegraph.com users:

Click Continue with Sourcegraph.com in the Cody extension. From there, you'll be taken to Sourcegraph.com, which will authenticate your extension.

(Optional) Enable code graph context for context-aware answers

You can optional configure code graph content, which gives Cody the ability to provide context-aware answers. For example, Cody can write example API calls if has context of a codebase's API schema.

Get started with Cody

You're now ready to use Cody! See our recommendations for getting started with using Cody.

Congratulations!

You're now up-and-running with your very own AI code asisstant! 🎉