From 05513b46d4e42491217e44aa28819ba505a26a8f Mon Sep 17 00:00:00 2001 From: Sophie <29382425+sophietheking@users.noreply.github.com> Date: Fri, 7 Feb 2025 14:10:10 +0100 Subject: [PATCH] View generated files directly within Copilot [Public Preview] (#54113) Co-authored-by: hubwriter --- .../asking-github-copilot-questions-in-github.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/content/copilot/using-github-copilot/asking-github-copilot-questions-in-github.md b/content/copilot/using-github-copilot/asking-github-copilot-questions-in-github.md index a58f42a723e0..53afd8496288 100644 --- a/content/copilot/using-github-copilot/asking-github-copilot-questions-in-github.md +++ b/content/copilot/using-github-copilot/asking-github-copilot-questions-in-github.md @@ -33,6 +33,15 @@ On {% data variables.product.github %}, you can use {% data variables.product.pr * The quality of the results from {% data variables.product.prodname_copilot_chat_short %} may, in some situations, be degraded if very large files, or a large number of files, are used as a context for a question. +### Viewing generated files within {% data variables.product.prodname_copilot_chat_short %} + +> [!NOTE] +> This feature is currently in {% data variables.release-phases.public_preview %} and subject to change. + +When you ask a question, {% data variables.product.prodname_copilot_short %} may generate one or more files as part of its response. In the {% data variables.product.prodname_copilot_chat_short %} panel, the files are displayed inline, within the chat response. In immersive view (that is, at [https://github.com/copilot](https://github.com/copilot)), the generated files are displayed in a side panel. You can view the files in the panel, or download them to your computer. + +For example, asking `Generate a simple calculator using HTML, CSS, and JavaScript` may generate multiple files, such as `index.html`, `styles.css`, and `script.js`. + ## Powered by skills When using the GPT 4o and {% data variables.copilot.copilot_claude_sonnet %} models, {% data variables.product.prodname_copilot_short %} has access to a collection of skills to fetch data from {% data variables.product.github %}, which are dynamically selected based on the question you ask. You can tell which skill {% data variables.product.prodname_copilot_short %} used by clicking {% octicon "chevron-down" aria-label="the down arrow" %} to expand the status information in the chat window.