From b45a755da86feb960975e59c727a048d1f5211bb Mon Sep 17 00:00:00 2001 From: Sam Browning <106113886+sabrowning1@users.noreply.github.com> Date: Mon, 29 Apr 2024 10:27:29 -0400 Subject: [PATCH] Create additional content on Copilot Chat slash commands in IDEs (#50342) --- .../using-github-copilot-chat-in-your-ide.md | 17 +++++++++++++++-- data/reusables/copilot/chat-asking-questions.md | 6 ------ 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/content/copilot/github-copilot-chat/using-github-copilot-chat-in-your-ide.md b/content/copilot/github-copilot-chat/using-github-copilot-chat-in-your-ide.md index 5d16cc1650..0630e98cde 100644 --- a/content/copilot/github-copilot-chat/using-github-copilot-chat-in-your-ide.md +++ b/content/copilot/github-copilot-chat/using-github-copilot-chat-in-your-ide.md @@ -101,6 +101,12 @@ When {% data variables.product.prodname_copilot_chat_short %} provides code sugg {% data reusables.copilot.chat-asking-questions %} +{% note %} + +**Note:** To find out about other special commands you can use with {% data variables.product.prodname_copilot_chat_short %}, enter `/help` in the chat input box. For more information on slash commands, see [Using {% data variables.product.prodname_copilot_chat_short %} in {% data variables.product.prodname_vscode_shortname %}](https://code.visualstudio.com/docs/copilot/copilot-chat#_slash-commands) in the {% data variables.product.prodname_vscode_shortname %} documentation. + +{% endnote %} + ## Sharing feedback about {% data variables.product.prodname_copilot_chat %} To share feedback about {% data variables.product.prodname_copilot_chat_short %}, you can use the **share feedback** button in the {% data variables.product.prodname_copilot_chat_short %} window. @@ -168,7 +174,7 @@ To use {% data variables.product.prodname_copilot_chat %} with {% data variables {% data reusables.copilot.copilot-chat-exclusively-code-questions %} {% data reusables.copilot.chat-open-visualstudio %} -1. At the bottom of the {% data variables.product.prodname_copilot_chat_short %} window, in the **Ask {% data variables.product.prodname_copilot_short %}** text box, type a coding related question, then press **Enter**. For example, type "How do I write a function that returns the sum of two numbers?". +1. At the bottom of the {% data variables.product.prodname_copilot_chat_short %} window, in the **Ask {% data variables.product.prodname_copilot_short %}: Type / for commands and # to reference** text box, type a coding related question, then press **Enter**. For example, type "How do I write a function that returns the sum of two numbers?". {% note %} @@ -187,9 +193,15 @@ To use {% data variables.product.prodname_copilot_chat %} with {% data variables {% data reusables.copilot.chat-open-visualstudio %} {% data reusables.copilot.chat-asking-questions %} +{% note %} + +**Note:** To find out about other special commands you can use with {% data variables.product.prodname_copilot_chat_short %}, enter `/help` in the chat input box. For more information on slash commands, see [Get better answers by setting the context for {% data variables.product.prodname_copilot_chat %} in {% data variables.product.prodname_vs %}](https://learn.microsoft.com/en-us/visualstudio/ide/copilot-chat-context?view=vs-2022#slash-commands) in the {% data variables.product.prodname_vs %} documentation. + +{% endnote %} + ## Sharing feedback about {% data variables.product.prodname_copilot_chat %} -To share feedback about {% data variables.product.prodname_copilot_chat_short %}, you can use the **Send feedback** button in {% data variables.product.prodname_vs %}. For more information on providing feedback for {% data variables.product.prodname_vs %}, see the [Visual Studio Feedback](https://learn.microsoft.com/en-us/visualstudio/ide/how-to-report-a-problem-with-visual-studio?view=vs-2022) documentation. +To share feedback about {% data variables.product.prodname_copilot_chat_short %}, you can use the **Send feedback** button in {% data variables.product.prodname_vs %}. For more information on providing feedback for {% data variables.product.prodname_vs %}, see the [{% data variables.product.prodname_vs %} Feedback](https://learn.microsoft.com/en-us/visualstudio/ide/how-to-report-a-problem-with-visual-studio?view=vs-2022) documentation. 1. In the top right corner of the {% data variables.product.prodname_vs %} window, click the **Send feedback** button. @@ -314,6 +326,7 @@ The following procedures will guide you through installing or updating the {% da - To generate a description of the file's purpose, ask a question like, "What does this file do?" - To generate a unit test for the file, type a request like, "Write a unit test for this file." Alternatively, highlight the code you want to generate a unit test for, then ask a question like, "Write a unit test for this code." - To generate a fix for a bug in the file, type a request like, "Fix this bug." +1. Optionally, you can prompt {% data variables.product.prodname_copilot_chat_short %} to perform predefined tasks with slash commands. To see a list of all available slash commands and their definitions, in the **Ask {% data variables.product.prodname_copilot_short %} a question or type `/` for commands** text box, type `/`. ## Sharing feedback about {% data variables.product.prodname_copilot_chat %} diff --git a/data/reusables/copilot/chat-asking-questions.md b/data/reusables/copilot/chat-asking-questions.md index 1f80d62173..b9d650ae74 100644 --- a/data/reusables/copilot/chat-asking-questions.md +++ b/data/reusables/copilot/chat-asking-questions.md @@ -18,9 +18,3 @@ 1. Type your question. For example, `#file:app.js What does this file do?`. You can use the `#file` command multiple times in your question to focus {% data variables.product.prodname_copilot_short %} on more than one file. - -{% note %} - -**Note:** To find out about other special commands you can use with {% data variables.product.prodname_copilot_chat_short %}, enter `/help` in the chat input box. - -{% endnote %}