You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cody/clients/install-visual-studio.mdx
+18-10Lines changed: 18 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,9 @@
2
2
3
3
<pclassName="subtitle">Learn how to use Cody and its features with the Visual Studio editor.</p>
4
4
5
-
<Callouttype="info">Cody for Visual Studio is currently in Experimental stage and currently only support chat.</Callout>
5
+
<Callouttype="info">Cody for Visual Studio is currently in the Experimental stage and currently only supports chat.</Callout>
6
6
7
-
Cody extension for Visual Studio enhances your coding experience by providing intelligent and contextually aware ansewers to your questions. This guide will walk you through the steps to install and set up Cody within your Visual Studio editor.
7
+
Cody extension for Visual Studio enhances your coding experience by providing intelligent and contextually aware answers to your questions. This guide will walk you through installing and setting Cody within your Visual Studio editor.
8
8
9
9
<LinkCards>
10
10
<LinkCardhref="https://github.com/sourcegraph/cody-vs/"imgSrc="https://storage.googleapis.com/sourcegraph-assets/Docs/visual-studio-v2.svg"imgAlt="Cody for Visual Studio (Experimental)"title="Cody for Visual Studio"description="Install Cody's free extension for Visual Studio." />
@@ -27,23 +27,27 @@ Cody extension for Visual Studio enhances your coding experience by providing in
27
27
28
28
After a successful installation, go to **Tools** from the main toolbar at the top and click the **Cody Chat** from the drop-down. This opens the dialog box to connect to your Sourcegraph instance.
29
29
30
-
Cody Free or Pro users can sign in to their Sourcegraph.com accounts through GitHub, GitLab, or Google. While Sourcegraph Enterprise users should connect Cody via their Enterprise instance URL and the Access Token.
30
+
Cody Free or Pro users can sign in to their Sourcegraph.com accounts through GitHub, GitLab, or Google. Meanwhile, Sourcegraph Enterprise users should connect Cody via their Enterprise instance URL and the Access Token.
31
31
32
-
Complete these steps and you're ready to start using Cody in Visual Studio.
32
+
Complete these steps, and you'll be ready to start using Cody in Visual Studio.
Cody in Visual Studio allows you to ask questions about your code and get contextually aware answers. The chat window is available in a unified interface opened right next to your code. All your previous and existing chats are stored for later use and can be accessed via the **History** icon from the top menu. You can download them to share or use later in a `.json` file or delete them altogether.
38
+
Cody in Visual Studio allows you to ask questions about your code and get contextually aware answers. The chat window is available in a unified interface next to your code. All your previous and existing chats are stored for later use and can be accessed via the **History** icon from the top menu. You can download them to share or use later in a `.json` file or delete them.
37
39
38
40
The chat input field has a default `@-mention`[context chips](#context-retrieval). These are automatically populated with the names of the files you have open in your editor. There is also a drop-down for [LLM selection](#llm-selection) and a button to run pre-built [prompts and commands](#prompts).
Cody offers a variety of large language models (LLMs) to power your chat experience. Cody Pro users can select the LLM they want to use for chat and experiment to choose the best model for the job. Choose from Claude 3.5 Sonnet,Claude 3 Opus, Claude 3 Sonnet, Claude 3 Haiku, GPT-4o, GPT-4 Turbo, GPT-3.5 Turbo, Google Gemini 1.5 Pro, Gemini 1.5 Flash, and Mixtral, while Cody Free users have access to the latest base models from Anthropic, OpenAI, Google, and Mixtral.
46
+
Cody offers a variety of large language models (LLMs) to power your chat experience. Cody Pro users can select the LLM they want to use for chat and experiment to choose the best model for the job. Choose from Claude 3.5 Sonnet,Claude 3 Opus, Claude 3 Sonnet, Claude 3 Haiku, GPT-4o, GPT-4 Turbo, GPT-3.5 Turbo, Google Gemini 1.5 Pro, Gemini 1.5 Flash, and Mixtral, while Cody Free users have access to the latest base models from Anthropic, OpenAI, Google, and Mixtral.
43
47
44
-
Local models are also available through Ollama to both Cody Free and Cody Pro users. Simply download the model and run it in Ollama to use it in Cody chat.
48
+
Local models are also available through Ollama to Cody Free and Cody Pro users. To use a model in Cody chat, simply download it and run it in Ollama.
45
49
46
-
Administrators for Sourcegraph Enterprise instances can choose between Claude and GPT models to set for their teams as well.
50
+
Administrators for Sourcegraph Enterprise instances can also choose between Claude and GPT models to set for their teams.
47
51
48
52
## Selecting Context with @-mentions
49
53
@@ -52,18 +56,22 @@ Cody's chat allows you to add files and symbols as context in your messages.
52
56
- Type `@-file` and then a filename to include a file as a context
53
57
- Type `@#` and then a symbol name to include the symbol's definition as context. Functions, methods, classes, types, etc., are all symbols
When you start a new Cody chat, the chat input window opens with a default `@-mention` context chips for all the context it intends to use. This context is based on your current repository and current file (or a file selection if you have code highlighted).
58
64
59
-
At any point in time, you can edit these context chips or remove them completely if you do not want to use these as context. Any chat without a context chip will instruct Cody to use no codebase context. However, you can always provide an alternate `@-mention` file or symbols to let Cody use it as a new source of context.
65
+
At any point in time, you can edit these context chips or remove them completely if you do not want to use these as context. Any chat without a context chip will instruct Cody to use no codebase context. However, you can always provide an alternate `@-mention` file or symbols to let Cody use it as a new context source.
60
66
61
67
When you have both a repository and files @-mentioned, Cody will search the repository for context while prioritizing the mentioned files.
62
68
63
69
## Prompts
64
70
65
-
Cody offers a variety of pre-built prompts and commands to help you get the most out of your chat experience. You can access these prompts and commands from the chat input field. Using one of these you can ask Cody to:
71
+
Cody offers a variety of pre-built prompts and commands to help you get the most out of your chat experience. You can access these prompts and commands from the chat input field. Using one of these, you can ask Cody to:
Copy file name to clipboardExpand all lines: docs/cody/index.mdx
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,8 +17,9 @@ Cody connects seamlessly with codehosts like <a target="blank" href="https://git
17
17
You can start using Cody with one of the following clients:
18
18
19
19
<ProductCards>
20
-
<ProductCardhref="/cody/clients/install-vscode"imgSrc="https://storage.googleapis.com/sourcegraph-assets/docs/images/cody/vscode.svg"imgAlt="VS Code"title="Cody for VS Code!"description="Install Cody's free extension for VS Code. " />
20
+
<ProductCardhref="/cody/clients/install-vscode"imgSrc="https://storage.googleapis.com/sourcegraph-assets/docs/images/cody/vscode.svg"imgAlt="VS Code"title="Cody for VS Code"description="Install Cody's free extension for VS Code. " />
21
21
<ProductCardhref="/cody/clients/install-jetbrains"imgSrc="https://storage.googleapis.com/sourcegraph-assets/docs/images/cody/jb_beam.svg"imgAlt="JetBrains"title="Cody for JetBrains"description="Install Cody's free and open source extension for JetBrains." />
22
+
<ProductCardhref="/cody/clients/install-visual-studio"imgSrc="https://storage.googleapis.com/sourcegraph-assets/Docs/visual-studio-v2.svg"imgAlt="Visual Studio"title="Cody for Visual Studio (Experimental)"description="Install Cody's free and open source extension for Visual Studio." />
22
23
<ProductCardhref="/cody/clients/cody-with-sourcegraph"imgSrc="https://storage.googleapis.com/sourcegraph-assets/docs/images/cody/cody-logomark-default.svg"imgAlt="Cody Web"title="Cody for Web"description="Use Cody in the Sourcegraph web app." />
23
24
<ProductCardhref="/cody/clients/enable-cody-enterprise"imgSrc="https://sourcegraph.com/.assets/img/sourcegraph-mark.svg"imgAlt="Cody Enterprise"title="Cody Enterprise"description="Get in touch with our team to try Cody for Sourcegraph Enterprise." />
0 commit comments