Skip to content

Commit 2bf4eab

Browse files
committed
Updates
1 parent 20fa540 commit 2bf4eab

File tree

3 files changed

+12
-18
lines changed

3 files changed

+12
-18
lines changed

docs/ide/copilot-chat-referencing-context.md renamed to docs/ide/copilot-chat-context-references.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ Scope your questions to [**GitHub Copilot Chat**](visual-studio-github-copilot-c
1919

2020
In this article, you learn how to get better answers by providing more information to Copilot Chat:
2121

22-
- Understand the implicit context Copilot leverages behind the scenes
23-
- Scope the chat to specific files using references
24-
- Review the source used by Copilot to generate the answer
25-
- Use different threads for each of your Copilot chats so you can maintain different contexts in each
22+
+ Understand the [implicit context](#implicit-context) Copilot leverages behind the scenes
23+
+ Scope the chat to specific files using [references](#reference-context)
24+
+ [Attach images](#attach-images) to your prompt to provide additional context and better illustrate your ideas
25+
+ Review the [source](#find-context) used by Copilot to generate the answer
26+
+ Use different [threads](#threads) for each of your Copilot chats so you can maintain different contexts in each
2627

2728
## Implicit context
2829

docs/ide/copilot-chat-context.md

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: 'Tips & Tricks for GitHub Copilot Chat in Visual Studio'
3-
description: Use slash commands, references, and threads to form better questions and get better answers with scoped context in GitHub Copilot Chat.
2+
title: 'Use slash commands in Copilot Chat'
3+
description: Use slash commands to form better questions and get better answers with scoped context in GitHub Copilot Chat.
44
ms.date: 7/31/2025
55
ms.topic: how-to
66
author: anandmeg
@@ -13,14 +13,13 @@ helpviewer_keywords:
1313
- context, copilot chat
1414
monikerRange: '>= vs-2022'
1515
---
16-
# Get better answers by setting the context for GitHub Copilot Chat in Visual Studio
16+
# Use slash command to set the chat context
1717

18-
You can ask [**GitHub Copilot Chat**](visual-studio-github-copilot-chat.md) to give you code suggestions, explain code, generate unit tests, and suggest code fixes. In addition to your prompt, Copilot uses additional context, like the code in your current file and the chat history, to generate a response.
18+
You can ask [**GitHub Copilot Chat**](visual-studio-github-copilot-chat.md) to give you code suggestions, explain code, generate unit tests, and suggest code fixes. In addition to your prompt, Copilot uses additional context, like the code in your current file, any attached images, and the chat history, to generate a response.
1919

2020
In this article, you learn how to get better answers by providing more information to Copilot Chat:
2121
+ Use [slash commands](#slash-commands) to quickly specify common tasks like `/explain` to get code explanations.
2222
+ Use the [guided chat experience](#prompting-guidance) and [custom instructions](#enable-custom-instructions) to refine context.
23-
+ [Attach images](#attach-images) to your prompt to provide additional context and better illustrate your ideas.
2423

2524
Learn more about [AI-assisted development in Visual Studio](../ide/ai-assisted-development-visual-studio.md) and how to [use Copilot Chat in Visual Studio](../ide/visual-studio-github-copilot-chat.md#use-copilot-chat-in-visual-studio).
2625

@@ -83,14 +82,6 @@ You can use slash commands in a [chat window](visual-studio-github-copilot-chat.
8382

8483
With Visual Studio 2022 version 17.13, as the user types a slash command, the command expands out the prompt in natural language to display the context the command will use.
8584

86-
## <a name="attach-images"></a>Attach images to a chat prompt
87-
88-
With vision integration for Copilot Chat in Visual Studio 17.14 and later, you can [attach images](visual-studio-github-copilot-chat.md#attach-images-to-chat-prompts) to your chat prompt, providing Copilot with additional context for improved responses. Use images in combination with [scope](copilot-chat-referencing-context.md#reference-context) and other contextual features such as slash commands to generate tailored responses.
89-
90-
In the following example, Copilot interprets the attached image to generate a plan and suggest code to create a colorful Breakout game from scratch.
91-
92-
:::image type="content" source="media/vs-2022/visual-studio-github-copilot-chat/example-attach-image-chat.png" alt-text="Screenshot of an example scenario of adding an image in Copilot Chat." lightbox="media/vs-2022/visual-studio-github-copilot-chat/example-attach-image-chat.png" :::
93-
9485
## Next steps
9586

9687
- [GitHub Copilot experience for Visual Studio](visual-studio-github-copilot-extension.md)

docs/toc.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,10 @@
159159
href: ide/copilot-edits.md
160160
- name: Chat context
161161
items:
162-
- name: Tips to improve results
162+
- name: Use slash commands
163163
href: ide/copilot-chat-context.md
164+
- name: Use references
165+
href: ide/copilot-chat-context-references.md
164166
- name: Guides
165167
items:
166168
- name: Debug with Copilot

0 commit comments

Comments
 (0)