Skip to content

Commit ec2fe95

Browse files
Merge pull request #13319 from anandmeg/vs1712-copilot1
Add code referencing update
2 parents 3328f04 + 6cdabdb commit ec2fe95

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed
Loading

docs/ide/visual-studio-github-copilot-chat.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: About GitHub Copilot Chat in Visual Studio
33
description: Learn about the fully integrated GitHub Copilot Chat in Visual Studio. Use the chat interface to ask coding-related questions from right within the IDE.
4-
ms.date: 8/13/2024
4+
ms.date: 11/12/2024
55
ms.topic: overview
66
author: anandmeg
77
ms.author: meghaanand
@@ -68,6 +68,8 @@ The chat window of Copilot Chat in Visual Studio enables you to ask your questio
6868
1. In the Copilot Chat window, type a coding related question in the **Ask Copilot** text box. Press **Enter** or select **Send** to ask your question.
6969

7070
:::image type="content" source="media/vs-2022/visual-studio-github-copilot-chat/copilot-chat-window-ask-copilot-textbox.png" alt-text="Screenshot of Copilot Chat window.":::
71+
72+
Use the example starter prompts in Visual Studio 2022 version 17.12 and later to start exploring GitHub Copilot Chat.
7173

7274
1. If Copilot Chat offers a code suggestion you want to use, select **Copy code block** to copy the code suggestion, **Insert in new files** to insert the code suggestion in a new file, or select **Preview** to insert the code suggestion in your current code file. Using the **Preview** button lets you preview the code in the target location so you can easily see what's being updated.
7375

@@ -82,6 +84,10 @@ The chat window of Copilot Chat in Visual Studio enables you to ask your questio
8284
1. If you select **Insert in new file**, you'll see the code suggestions in a new file. The file is not saved by default.
8385

8486
:::image type="content" source="media/vs-2022/visual-studio-github-copilot-chat/copilot-chat-window-insert-in-new-file.png" alt-text="Screenshot of code suggestions in new file in the editor." lightbox="media/vs-2022/visual-studio-github-copilot-chat/copilot-chat-window-insert-in-new-file.png":::
87+
88+
Visual Studio 2022 version 17.12 now includes [code referencing in GitHub Copilot](https://github.blog/news-insights/product-news/introducing-code-referencing-for-github-copilot/). This feature in GitHub Copilot notifies you when suggestions match public code. You can view the matching code, its source file, and any associated licensing information directly within Visual Studio. This enables you to make more informed decisions about whether to use the suggested code.
89+
90+
:::image type="content" source="media/vs-2022/visual-studio-github-copilot-chat/code-referencing.png" alt-text="Screenshot of code referencing for public code.":::
8591

8692
### Ask questions in the inline chat view
8793

0 commit comments

Comments
 (0)