Skip to content

Commit 44bd8ba

Browse files
committed
Add imporvements
1 parent 044ba9b commit 44bd8ba

File tree

2 files changed

+20
-11
lines changed

2 files changed

+20
-11
lines changed

docs/cody/clients/install-visual-studio.mdx

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
<p className="subtitle">Learn how to use Cody and its features with the Visual Studio editor.</p>
44

5-
<Callout type="info">Cody for Visual Studio is currently in Experimental stage and currently only support chat.</Callout>
5+
<Callout type="info">Cody for Visual Studio is currently in the Experimental stage and currently only supports chat.</Callout>
66

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.
88

99
<LinkCards>
1010
<LinkCard href="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
2727

2828
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.
2929

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.
3131

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.
33+
34+
![install-cody-vscode](https://storage.googleapis.com/sourcegraph-assets/Docs/cody-vs-setup-102024.png)
3335

3436
## Chat
3537

36-
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.
3739

3840
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).
3941

42+
![cody-vs-chat](https://storage.googleapis.com/sourcegraph-assets/Docs/cody-vs-chat-102024.png)
43+
4044
## LLM selection
4145

42-
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.
4347

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.
4549

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.
4751

4852
## Selecting Context with @-mentions
4953

@@ -52,18 +56,22 @@ Cody's chat allows you to add files and symbols as context in your messages.
5256
- Type `@-file` and then a filename to include a file as a context
5357
- Type `@#` and then a symbol name to include the symbol's definition as context. Functions, methods, classes, types, etc., are all symbols
5458

59+
![cody-vs-context-retrieval](https://storage.googleapis.com/sourcegraph-assets/Docs/cody-vs-%40mention-102024.png)
60+
5561
### Context retrieval
5662

5763
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).
5864

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.
6066

6167
When you have both a repository and files @-mentioned, Cody will search the repository for context while prioritizing the mentioned files.
6268

6369
## Prompts
6470

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:
6672

6773
- Edit your code
6874
- Document your code
6975
- Generate unit tests
76+
77+
![cody-vs-prompts](https://storage.googleapis.com/sourcegraph-assets/Docs/cody-vs-prompts-102024.png)

docs/cody/index.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ Cody connects seamlessly with codehosts like <a target="blank" href="https://git
1717
You can start using Cody with one of the following clients:
1818

1919
<ProductCards>
20-
<ProductCard href="/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+
<ProductCard href="/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. " />
2121
<ProductCard href="/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+
<ProductCard href="/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." />
2223
<ProductCard href="/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." />
2324
<ProductCard href="/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." />
2425
</ProductCards>

0 commit comments

Comments
 (0)