因为什么| 干涉是什么意思| 左眼一直跳是什么原因| 剂型是什么意思| 头发软是什么原因| 静推是什么意思| 什么是pv| 为什么男人喜欢女人的胸| 什么叫偶数| 不吃肉对身体有什么影响| 川字纹有什么影响| 什么什么为什么| 晚上很难入睡是什么原因| 安全感是什么意思| 口腔溃疡吃什么水果好| 25属什么| 喝什么酒不会胖| 化疗有什么副作用| 心理卫生科看什么病的| 树洞什么意思| 手指脱皮是缺什么维生素| 别出心裁是什么生肖| 为什么有些人怎么吃都不胖| 紫米和小米什么关系| 老干局是干什么的| 舌头发黑是什么原因| 白芽奇兰是什么茶| 亲子鉴定挂什么科| 白内障是什么| 泪点低是什么意思| 多发性脂肪瘤是什么原因造成的| 血压下午高是什么原因| 长辈生日送什么花| 黄斑前膜是什么病| 疑虑是什么意思| 老是打嗝是什么病的征兆| 梦到自己长白头发是什么意思| 甲状腺是什么科| 男人喝劲酒有什么好处| 猩红热是什么病| 三剑客是什么意思| 牙齿黄是什么原因造成的| 胎位lop是什么意思| 孕妇吃什么最有营养| 为什么文化大革命| 什么是失眠| 中央电视台台长是什么级别| 6月3号什么星座| 尿道感染要吃什么药| 男人肾虚吃什么最补| 纳征是什么意思| 高血压可以吃什么肉| 医保卡有什么用| 畏首畏尾是什么意思| wl是什么意思| 咳出痰带血是什么原因| 四妙丸有什么功效与作用| 脸上过敏是什么症状| 电饭锅内胆是什么材质| 为什么会反胃想吐| 文房四宝指什么| 梦见自己小便是什么意思| 点茶是什么意思| 为什么月经一次比一次提前| 脸肿眼睛肿是什么原因引起的| 百日咳是什么引起的| 2月2日是什么星座| 煜字五行属什么| 木字旁的字有什么| xl代表什么尺码| 什么的身体| 溥仪为什么没有后代| 新疆人是什么民族| 五岳是什么意思| 什么食物化痰| 普渡众生是什么意思| 苗字五行属什么| 喉咙一直有痰是什么原因| 什么药能提高免疫力| 身上无力是什么原因| 腿为什么肿| 黄痰是什么原因造成的| calcium是什么意思| 牙虫长什么样子| 辛辣都包括什么| 飚是什么意思| 肾属于什么科| 火象是什么星座| 天那水是什么| 栩字五行属什么| 会阴是什么| 炸肺是什么意思| 祖马龙是什么档次| 手突然发痒是什么原因| 肾亏是什么原因造成的| 头发白是什么原因| 暮春是什么时候| 母亲生日送什么礼物| 梦见花蛇是什么预兆| 氟是什么| 枸杞什么季节成熟| 腊月十八是什么星座| 秋天喝什么茶| videos是什么意思| 81岁属什么| 什么的同学| 例假血是黑色的是什么原因| 脖子左侧疼是什么前兆| 积食内热吃什么药| 孕期小腿抽筋什么原因| 冲锋陷阵是什么生肖| 78岁属什么生肖| tm什么意思| 光脚走路有什么好处| mid什么意思| 梦见买袜子是什么意思| 汗味酸臭是什么原因| u1是什么意思| 蛊惑是什么意思| 睡不着觉去医院挂什么科| 灵芝长在什么地方| 初级会计什么时候报名| 有品味什么意思| 胃疼喝什么可以缓解| 周六左眼跳是什么预兆| 鲍鱼是什么| 补气吃什么好| 屁股长痘是什么原因| 平均血红蛋白含量偏低是什么意思| b超检查前要注意什么| 生理期什么意思| 慢性心肌炎有什么症状| 壁虎在家里是什么征兆| 痔疮看什么科室| 雪燕是什么东西| 一是什么意思| 院子里有蛇是什么征兆| 雾化是治疗什么的| 女予念什么| 鸡内金有什么功效| mandy是什么意思| 曲马多是什么药| 做造影对身体有什么伤害| 男人硬不起来是什么原因| 肥宅是什么意思| 彩云之南是什么意思| 喝苦丁茶有什么好处| 发热是什么原因| 肠胃炎不能吃什么| gg是什么牌子的包包| 9月三号是什么日子| 美国为什么打越南| 台湾以前叫什么名字| 血糖忽高忽低是什么原因| 怀孕吃什么宝宝皮肤白| 什么是生理期| nsfw是什么意思| 血尿吃什么药见效快| 子宫肌层回声欠均匀是什么意思| 血管瘤是什么样子的图| 临界心电图是什么意思| 为什么有的女人欲太强| 病毒性感冒发烧吃什么药| 今年是什么年啊| 双向情感障碍症是什么病| 梦见自己掉头发是什么征兆| 经常头晕吃什么食物好| 决明子有什么功效| 什么体质人容易长脚气| 牙齿为什么会痛| 思维跳脱是什么意思| seiko手表是什么牌子| 新型冠状病毒有什么症状| 2007属什么生肖| 脑ct都能查出什么病| 1950属什么生肖| 妇科腺肌症是什么病| 痛心疾首的疾是什么意思| 睫毛炎有什么症状| 舌头发麻什么原因| 什么叫钙化| 高频听力损失意味什么| 豆乳是什么| 医院去痣挂什么科| 乳和霜有什么区别| 为什么会有甲状腺结节| 什么海翻江| 窦性心律不齐是什么| 闭关是什么意思| 痛风是什么地方痛| 妄语是什么意思| 保护嗓子长期喝什么茶| o型血容易得什么病| 熬夜伤什么| 盆腔炎什么症状| 吃坏东西肚子疼吃什么药| s925银是什么意思| 酥油是什么| 区委常委是什么级别| 胃结石有什么症状表现| 红加绿等于什么颜色| 醋泡黑豆有什么功效| 人类是什么时候出现的| 吃什么食物对肠胃好| 吃什么药去体内湿气| 黑死病是什么| opo是什么意思| 晚上12点是什么时辰| 人格分裂什么意思| ami是什么意思| 威士忌是用什么酿造的| 童子是什么| 五一年属什么生肖| 掷是什么意思| 吃什么会导致流产| 翌字五行属什么| 宫颈息肉吃什么药能消| 肾结石可以吃什么水果| 检查是否怀孕要挂什么科| 避孕套有什么危害| 缪读什么| 做梦梦见兔子是什么意思| 肺炎支原体抗体阳性是什么意思| 夜盲症缺什么| 涤纶是什么材料| 谋划是什么意思| 梦到自己老公出轨是什么意思| 阴离子是什么| 梦见蜂蜜是什么意思| 吃榴莲补什么| 夏天怕热冬天怕冷是什么体质| qaq什么意思| 历久弥新什么意思| 万马奔腾什么意思| 开理疗店需要什么证件| 牛油果是什么味道的| 怀孕什么东西不能吃| pe和pb是什么意思| 吃巧克力有什么好处| 什么人不适合喝骆驼奶| 发票抬头是什么| 常山现在叫什么| 心热是什么原因造成的| 阴道感染有什么症状| 便秘喝什么茶好| 头孢克肟和头孢拉定有什么区别| 证悟是什么意思| 白色念珠菌是什么| 旖旎风光是什么意思| eb病毒是什么病| 什么是全脂奶粉| 心脏彩超能查出什么| 什么月披星| 孕妇吃什么会流产| 尿微量白蛋白是什么意思| 宫颈肥大伴纳氏囊肿是什么意思| 甲状腺什么症状| 吃什么东西增强免疫力| 相逢是什么意思| 韩束属于什么档次| 冶游史是什么意思| scarves是什么意思| 什么是风热感冒| rt表示什么意思| 百度
Skip to main content

北京门头沟今年将拆违10万平方米 6万平米将用于生态修复

百度 2013年3月6日,习近平在参加全国两会辽宁代表团审议时强调,要大力加强思想道德建设。

Use Copilot Chat in your editor to give you code suggestions, explain code, generate unit tests, and suggest code fixes.

Prerequisites

If you have access to GitHub Copilot via your organization, you won't be able to use GitHub Copilot Chat if your organization owner has disabled chat. See Managing policies and features for Copilot in your organization.

Submitting prompts

You can ask Copilot Chat to give you code suggestions, explain code, generate unit tests, and suggest code fixes.

  1. To open the chat view, click the icon in the title bar of Visual Studio Code. If the icon is not displayed, right-click the title bar and make sure that Command Center is selected.

    Screenshot of the 'Copilot Chat' button, highlighted with a dark orange outline.

  2. Enter a prompt in the prompt box, or click one of the suggested prompts. For an introduction to the kinds of prompts you can use, see Getting started with prompts for Copilot Chat.

  3. Evaluate Copilot's response, and make a follow-up request if needed.

    The response may contain text, code blocks, buttons, images, URIs, and file trees. The response often includes interactive elements. For example, the response may include a menu to insert a code block, or a button to invoke a Visual Studio Code command.

    To see the files that Copilot Chat used to generate the response, select the Used n references dropdown at the top of the response. The references may include a link to a custom instructions file for your repository. This file contains additional information that is automatically added to all of your chat questions to improve the quality of the responses. For more information, see Adding repository custom instructions for GitHub Copilot.

Using keywords in your prompt

You can use special keywords to help Copilot understand your prompt. For examples, see Getting started with prompts for Copilot Chat.

Chat participants

Chat participants are like domain experts who have a specialty that they can help you with.

Copilot Chat can infer relevant chat participants based on your natural language prompt, improving discovery of advanced capabilities without you having to explicitly specify the participant you want to use in your prompt.

Note

Automatic inference for chat participants is currently in public preview and is subject to change.

Alternatively, you can manually specify a chat participant to scope your prompt to a specific domain. To do this, type @ in the chat prompt box, followed by a chat participant name.

For a list of available chat participants, type @ in the chat prompt box. See also GitHub Copilot Chat cheat sheet or Chat participants in the Visual Studio Code documentation.

Copilot Extensions chat participants

You can also install Copilot Extensions that provide chat participants. You can install these extensions from GitHub Marketplace and from Visual Studio Code Marketplace. For information about extensions from GitHub Marketplace that provide chat participants, see Using extensions to integrate external tools with Copilot Chat.

Slash commands

Use slash commands to avoid writing complex prompts for common scenarios. To use a slash command, type / in the chat prompt box, followed by a command.

To see all available slash commands, type / in the chat prompt box. See also GitHub Copilot Chat cheat sheet or Slash commands in the Visual Studio Code documentation.

Chat variables

Use chat variables to include specific context in your prompt. To use a chat variable, type # in the chat prompt box, followed by a chat variable.

To see all available chat variables, type # in the chat prompt box. See also GitHub Copilot Chat cheat sheet or Chat variables in the Visual Studio Code documentation.

Using GitHub skills for Copilot

Copilot's GitHub-specific skills expand the type of information Copilot can provide. To access these skills in Copilot Chat, include @github in your question.

When you add @github to a question, Copilot dynamically selects an appropriate skill, based on the content of your question. You can also explicitly ask Copilot Chat to use a particular skill. You can do this in two ways:

  • Use natural language to ask Copilot Chat to use a skill. For example, @github Search the web to find the latest GPT model from OpenAI.
  • To specifically invoke a web search you can include the #web variable in your question. For example, @github #web What is the latest LTS of Node.js?

You can generate a list of currently available skills by asking Copilot: @github What skills are available?

AI models for Copilot Chat

You can change the large language model that Copilot uses to generate responses to chat prompts, including premium models with advanced capabilities. You may find that different models perform better, or provide more useful responses, depending on the type of questions you ask. For more information see Changing the AI model for Copilot Chat.

Additional ways to access Copilot Chat

In addition to submitting prompts through the chat view, you can submit prompts in other ways:

  • Quick chat: To open the quick chat dropdown, enter ?+?+?+L (Mac) / Ctrl+Shift+Alt+L (Windows/Linux).
  • Inline: To start an inline chat directly in the editor or integrated terminal, enter Command+i (Mac) / Ctrl+i (Windows/Linux).
  • Smart actions: To submit prompts via the context menu, right click in your editor, select Copilot in the menu that appears, then select one of the actions. Smart actions can also be accessed via the sparkle icon that sometimes appears when you select a line of code.

See inline chat, quick chat, and chat smart actions in the Visual Studio Code documentation for more details.

Copilot Edits

Use Copilot Edits to make changes across multiple files directly from a single Copilot Chat prompt. Copilot Edits has the following modes:

  • Edit mode lets Copilot make controlled edits to multiple files.
  • Agent mode lets Copilot autonomously accomplish a set task.

Edit mode

Edit mode is only available in Visual Studio Code and JetBrains IDEs.

Use edit mode when you want more granular control over the edits that Copilot proposes. In edit mode, you choose which files Copilot can make changes to, provide context to Copilot with each iteration, and decide whether or not to accept the suggested edits after each turn.

Edit mode is best suited to use cases where:

  • You want to make a quick, specific update to a defined set of files.
  • You want full control over the number of LLM requests Copilot uses.

Using edit mode

  1. To start an edit session, select Open Chat from the Copilot Chat menu.

  2. At the bottom of the chat panel, select Edit from the mode dropdown.

    Screenshot of the Copilot Chat mode dropdown. The "Edit" option is outlined in dark orange.

  3. Optionally, add relevant files to the working set to indicate to GitHub Copilot which files you want to work on.

  4. Submit a prompt. In response to your prompt, Copilot Edits determines which files in your working set to change and adds a short description of the change.

  5. Review the changes and Apply or Discard the edits for each file.

For more detailed instructions, see Copilot Edits in the Visual Studio Code documentation.

Agent mode

Use agent mode when you have a specific task in mind and want to enable Copilot to autonomously edit your code. In agent mode, Copilot determines which files to make changes to, offers code changes and terminal commands to complete the task, and iterates to remediate issues until the original task is complete.

Agent mode is best suited to use cases where:

  • Your task is complex, and involves multiple steps, iterations, and error handling.
  • You want Copilot to determine the necessary steps to take to complete the task.
  • The task requires Copilot to integrate with external applications, such as an MCP server.

Using agent mode

  1. To start an edit session, select Open Chat from the Copilot Chat menu.
  2. At the bottom of the chat panel, select Agent from the mode dropdown.
  3. Submit a prompt. In response to your prompt, Copilot streams the edits in the editor, updates the working set, and if necessary, suggests terminal commands to run.
  4. Review the changes. If Copilot suggested terminal commands, confirm whether or not Copilot can run them. In response, Copilot iterates and performs additional actions to complete the task in your original prompt.

You can also directly open agent mode in VS Code.

For more information, see Copilot Edits in the Visual Studio Code documentation.

When you use Copilot agent mode, each prompt you enter counts as one premium request, multiplied by the model’s multiplier. For example, if you're using the included model—which has a multiplier of 0—your prompts won’t consume any premium requests. Copilot may take several follow-up actions to complete your task, but these follow-up actions do not count toward your premium request usage. Only the prompts you enter are billed—tool calls or background steps taken by the agent are not charged.

The total number of premium requests you use depends on how many prompts you enter and which model you select. See Requests in GitHub Copilot.

Using images in Copilot Chat

Note

You can attach images to your chat prompts and then ask Copilot about the images. For example, you can attach:

  • A screenshot of a code snippet and ask Copilot to explain the code.
  • A mockup of the user interface for an application and ask Copilot to generate the code.
  • A flowchart and ask Copilot to describe the processes shown in the image.
  • A screenshot of a web page and ask Copilot to generate HTML for a similar page.

Note

The following types of image file are supported: JPEG (.jpg, .jpeg), PNG (.png), GIF (.gif), or WEBP (.webp).

Attaching images to your chat prompt

  1. If you see the AI model picker at the bottom right of the chat view, select one of the models that supports adding images to prompts:

    • GPT-4.1 (the default that's used if you don't see a model picker)
    • GPT-4o
    • Claude Sonnet 3.5
    • Claude Sonnet 3.7
    • Gemini 2.0 Flash
    • Gemini 2.5 Pro

    Screenshot of Copilot Chat with the model picker highlighted with a dark orange outline.

  2. Do one of the following:

    • Copy an image and paste it into the chat view.
    • Drag and drop one or more image file from your operating system's file explorer—or from the Explorer in VS Code—into the chat view.
    • Right-click an image file in the VS Code Explorer and click Copilot then Add File to Chat.
  3. Type your prompt into the chat view to accompany the image. For example, explain this diagram, describe each of these images in detail, what does this error message mean.

Sharing feedback

To indicate whether a response was helpful, use the thumbs up and thumbs down icons that appear next to the response.

To leave feedback about the GitHub Copilot Chat extension, open an issue in the microsoft/vscode-copilot-release repository.

Further reading

Prerequisites

If you have access to GitHub Copilot via your organization, you won't be able to use GitHub Copilot Chat if your organization owner has disabled chat. See Managing policies and features for Copilot in your organization.

Submitting prompts

You can ask Copilot Chat to give you code suggestions, explain code, generate unit tests, and suggest code fixes.

  1. In the Visual Studio menu bar, click View, then click GitHub Copilot Chat.

  2. In the Copilot Chat window, enter a prompt, then press Enter. For example prompts, see Getting started with prompts for Copilot Chat.

  3. Evaluate Copilot's response, and submit a follow up prompt if needed.

    The response often includes interactive elements. For example, the response may include buttons to copy, insert, or preview the result of a code block.

    To see the files that Copilot Chat used to generate the response, click the References link below the response. The references may include a link to a custom instructions file for your repository. This file contains additional information that is automatically added to all of your chat questions to improve the quality of the responses. For more information, see Adding repository custom instructions for GitHub Copilot.

Using keywords in your prompt

You can use special keywords to help Copilot understand your prompt.

Extending Copilot Chat

GitHub Copilot Extensions integrate the power of external tools into Copilot Chat, helping you reduce context switching and receive responses with domain-specific context. You can install Copilot Extensions from the GitHub Marketplace or build private ones within your organization, then type @ in a chat window to see a list of your available extensions. To use an extension, select the extension from the list or type the full slug name, then type your prompt.

To learn more, see Using extensions to integrate external tools with Copilot Chat.

Slash commands

Use slash commands to avoid writing complex prompts for common scenarios. To use a slash command, type / in the chat prompt box, followed by a command.

To see all available slash commands, type / in the chat prompt box. See also GitHub Copilot Chat cheat sheet or Slash commands in the Visual Studio documentation.

References

By default, Copilot Chat will reference the file that you have open or the code that you have selected. You can also use # followed by a file name, file name and line numbers, or solution to reference a specific file, lines, or solution.

See also GitHub Copilot Chat cheat sheet or Reference in the Visual Studio documentation.

Using GitHub skills for Copilot (preview)

Note

The @github chat participant is currently in preview, and only available in Visual Studio 2022 Preview 2 onwards.

Copilot's GitHub-specific skills expand the type of information Copilot can provide. To access these skills in Copilot Chat in Visual Studio, include @github in your question.

When you add @github to a question, Copilot dynamically selects an appropriate skill, based on the content of your question. You can also explicitly ask Copilot Chat to use a particular skill. For example, @github Search the web to find the latest GPT4 model from OpenAI.

You can generate a list of currently available skills by asking Copilot: @github What skills are available?

AI models for Copilot Chat

You can change the large language model that Copilot uses to generate responses to chat prompts, including premium models with advanced capabilities. You may find that different models perform better, or provide more useful responses, depending on the type of questions you ask. For more information see Changing the AI model for Copilot Chat.

Additional ways to access Copilot Chat

In addition to submitting prompts through the chat window, you can submit prompts inline. To start an inline chat, right click in your editor window and select Ask Copilot.

See Ask questions in the inline chat view in the Visual Studio documentation for more details.

Copilot Edits

Note

  • This feature is currently in public preview and subject to change.
  • Available in Visual Studio 17.14 and later.

Copilot Edits lets you make changes across multiple files from a single Copilot Chat prompt

Use agent mode when you have a specific task in mind and want to enable Copilot to autonomously edit your code. In agent mode, Copilot determines which files to make changes to, offers code changes and terminal commands to complete the task, and iterates to remediate issues until the original task is complete.

Using agent mode

  1. In the Visual Studio menu bar, click View, then click GitHub Copilot Chat.
  2. At the bottom of the chat panel, select Agent from the mode dropdown.
  3. Submit a prompt. In response to your prompt, Copilot streams the edits in the editor, updates the working set, and if necessary, suggests terminal commands to run.
  4. Review the changes. If Copilot suggested terminal commands, confirm whether or not Copilot can run them. In response, Copilot iterates and performs additional actions to complete the task in your original prompt.

When you use Copilot agent mode, each prompt you enter counts as one premium request, multiplied by the model’s multiplier. For example, if you're using the included model—which has a multiplier of 0—your prompts won’t consume any premium requests. Copilot may take several follow-up actions to complete your task, but these follow-up actions do not count toward your premium request usage. Only the prompts you enter are billed—tool calls or background steps taken by the agent are not charged.

Using images in Copilot Chat

Note

You can attach images to your chat prompts and then ask Copilot about the images. For example, you can attach:

  • A screenshot of a code snippet and ask Copilot to explain the code.
  • A mockup of the user interface for an application and ask Copilot to generate the code.
  • A flowchart and ask Copilot to describe the processes shown in the image.
  • A screenshot of a web page and ask Copilot to generate HTML for a similar page.

Note

The following types of image file are supported: JPEG (.jpg, .jpeg), PNG (.png), GIF (.gif), or WEBP (.webp).

Attaching images to your chat prompt

  1. If you see the AI model picker at the bottom right of the chat view, select one of the models that supports adding images to prompts:

    • GPT-4.1 (the default that's used if you don't see a model picker)
    • GPT-4o
    • Claude Sonnet 3.5
    • Claude Sonnet 3.7
    • Gemini 2.0 Flash
    • Gemini 2.5 Pro
  2. Do one of the following:

    • Copy an image and paste it into the chat view.
    • Click the paperclip icon at the bottom right of the chat view, click Upload Image, browse to the image file you want to attach, select it and click Open.

    You can add multiple images if required.

  3. Type your prompt into the chat view to accompany the image. For example, explain this image, or describe each of these images in detail.

Sharing feedback

To share feedback about Copilot Chat, you can use the Send feedback button in Visual Studio. For more information on providing feedback for Visual Studio, see the Visual Studio Feedback documentation.

  1. In the top right corner of the Visual Studio window, click the Send feedback button.

    Screenshot of the share feedback button in Visual Studio.

  2. Choose the option that best describes your feedback.

    • To report a bug, click Report a problem.
    • To request a feature, click Suggest a feature.

Further reading

Prerequisites

If you have access to GitHub Copilot via your organization, you won't be able to use GitHub Copilot Chat if your organization owner has disabled chat. See Managing policies and features for Copilot in your organization.

Submitting prompts

You can ask Copilot Chat to give you code suggestions, explain code, generate unit tests, and suggest code fixes.

  1. Open the Copilot Chat window by clicking the GitHub Copilot Chat icon at the right side of the JetBrains IDE window.

    Screenshot of the GitHub Copilot Chat icon in the Activity Bar.

  2. Enter a prompt in the prompt box. For example prompts, see Getting started with prompts for Copilot Chat.

  3. Evaluate Copilot's response, and submit a follow up prompt if needed.

    The response often includes interactive elements. For example, the response may include buttons to copy or insert a code block.

    To see the files that Copilot Chat used to generate the response, click the References link below the response. The references may include a link to a custom instructions file for your repository. This file contains additional information that is automatically added to all of your chat questions to improve the quality of the responses. For more information, see Adding repository custom instructions for GitHub Copilot.

Using keywords in your prompt

You can use special keywords to help Copilot understand your prompt.

Chat participants

Chat participants are like domain experts who have a specialty that they can help you with. You can use a chat participant to scope your prompt to a specific domain. To do this, type @ in the chat prompt box, followed by a chat participant name.

For a list of available chat participants, type @ in the chat prompt box. See also GitHub Copilot Chat cheat sheet.

Extending Copilot Chat

GitHub Copilot Extensions integrate the power of external tools into Copilot Chat, helping you reduce context switching and receive responses with domain-specific context. You can install Copilot Extensions from the GitHub Marketplace or build private ones within your organization, then type @ in a chat window to see a list of your available extensions. To use an extension, select the extension from the list or type the full slug name, then type your prompt.

To learn more, see Using extensions to integrate external tools with Copilot Chat.

Slash commands

Use slash commands to avoid writing complex prompts for common scenarios. To use a slash command, type / in the chat prompt box, followed by a command.

To see all available slash commands, type / in the chat prompt box. See also GitHub Copilot Chat cheat sheet.

File references

By default, Copilot Chat will reference the file that you have open or the code that you have selected. You can also tell Copilot Chat which files to reference by dragging a file into the chat prompt box. Alternatively, you can right click on a file, select GitHub Copilot, then select Reference File in Chat.

Using GitHub skills for Copilot

Copilot's GitHub-specific skills expand the type of information Copilot can provide. To access these skills in Copilot Chat, include @github in your question.

When you add @github to a question, Copilot dynamically selects an appropriate skill, based on the content of your question. You can also explicitly ask Copilot Chat to use a particular skill. You can do this in two ways:

  • Use natural language to ask Copilot Chat to use a skill. For example, @github Search the web to find the latest GPT model from OpenAI.
  • To specifically invoke a web search you can include the #web variable in your question. For example, @github #web What is the latest LTS of Node.js?

You can generate a list of currently available skills by asking Copilot: @github What skills are available?

AI models for Copilot Chat

You can change the large language model that Copilot uses to generate responses to chat prompts, including premium models with advanced capabilities. You may find that different models perform better, or provide more useful responses, depending on the type of questions you ask. For more information see Changing the AI model for Copilot Chat.

Additional ways to access Copilot Chat

  • Built-in requests. In addition to submitting prompts through the chat window, you can submit built-in requests by right clicking in a file, selecting GitHub Copilot, then selecting one of the options.
  • Inline. You can submit a chat prompt inline, and scope it to a highlighted code block or your current file.
    • To start an inline chat, right click on a code block or anywhere in your current file, hover over GitHub Copilot, then select Copilot: Inline Chat, or enter Ctrl+Shift+I.

Copilot Edits

Use Copilot Edits to make changes across multiple files directly from a single Copilot Chat prompt. Copilot Edits has the following modes:

  • Edit mode lets Copilot make controlled edits to multiple files.
  • Agent mode lets Copilot autonomously accomplish a set task.

Edit mode

Edit mode is only available in Visual Studio Code and JetBrains IDEs.

Use edit mode when you want more granular control over the edits that Copilot proposes. In edit mode, you choose which files Copilot can make changes to, provide context to Copilot with each iteration, and decide whether or not to accept the suggested edits after each turn.

Edit mode is best suited to use cases where:

  • You want to make a quick, specific update to a defined set of files.
  • You want full control over the number of LLM requests Copilot uses.

Using edit mode

  1. To start an edit session, click Copilot in the menu bar, then select Open GitHub Copilot Chat.
  2. At the top of the chat panel, click Copilot Edits.
  3. Add relevant files to the working set to indicate to GitHub Copilot which files you want to work on. You can add all open files by clicking Add all open files or individually search for single files.
  4. Submit a prompt. In response to your prompt, Copilot Edits determines which files in your working set to change and adds a short description of the change.
  5. Review the changes and Accept or Discard the edits for each file.

Agent mode

Use agent mode when you have a specific task in mind and want to enable Copilot to autonomously edit your code. In agent mode, Copilot determines which files to make changes to, offers code changes and terminal commands to complete the task, and iterates to remediate issues until the original task is complete.

Agent mode is best suited to use cases where:

  • Your task is complex, and involves multiple steps, iterations, and error handling.
  • You want Copilot to determine the necessary steps to take to complete the task.
  • The task requires Copilot to integrate with external applications, such as an MCP server.

Using agent mode

  1. To start an edit session using agent mode, click Copilot in the menu bar, then select Open GitHub Copilot Chat.
  2. At the top of the chat panel, click the Agent tab.
  3. Submit a prompt. In response to your prompt, Copilot streams the edits in the editor, updates the working set, and if necessary, suggests terminal commands to run.
  4. Review the changes. If Copilot suggested terminal commands, confirm whether or not Copilot can run them. In response, Copilot iterates and performs additional actions to complete the task in your original prompt.

When you use Copilot agent mode, each prompt you enter counts as one premium request, multiplied by the model’s multiplier. For example, if you're using the included model—which has a multiplier of 0—your prompts won’t consume any premium requests. Copilot may take several follow-up actions to complete your task, but these follow-up actions do not count toward your premium request usage. Only the prompts you enter are billed—tool calls or background steps taken by the agent are not charged.

The total number of premium requests you use depends on how many prompts you enter and which model you select. See Requests in GitHub Copilot.

Sharing feedback

To share feedback about Copilot Chat, you can use the share feedback link in JetBrains.

  1. At the right side of the JetBrains IDE window, click the Copilot Chat icon to open the Copilot Chat window.

    Screenshot of the Copilot Chat icon in the Activity Bar.

  2. At the top of the Copilot Chat window, click the share feedback link.

    Screenshot of the share feedback link in the Copilot Chat window.

Further reading

Prerequisites

If you have access to GitHub Copilot via your organization, you won't be able to use GitHub Copilot Chat if your organization owner has disabled chat. See Managing policies and features for Copilot in your organization.

Submitting prompts

You can ask Copilot Chat to give you code suggestions, explain code, generate unit tests, and suggest code fixes.

  1. To open the chat view, click Editor in the menu bar, then click Copilot then Open Chat. Copilot Chat opens in a new window.

  2. Enter a prompt in the prompt box. For example prompts, see Getting started with prompts for Copilot Chat.

  3. Evaluate Copilot's response, and submit a follow up prompt if needed.

    The response often includes interactive elements. For example, the response may include buttons to copy or insert a code block.

    To see the files that Copilot Chat used to generate the response, click the References link below the response. The references may include a link to a custom instructions file for your repository. This file contains additional information that is automatically added to all of your chat questions to improve the quality of the responses. For more information, see Adding repository custom instructions for GitHub Copilot.

AI models for Copilot Chat

You can change the large language model that Copilot uses to generate responses to chat prompts, including premium models with advanced capabilities. You may find that different models perform better, or provide more useful responses, depending on the type of questions you ask. For more information see Changing the AI model for Copilot Chat.

Using keywords in your prompt

You can use special keywords to help Copilot understand your prompt.

Slash commands

Use slash commands to avoid writing complex prompts for common scenarios. To use a slash command, type / in the chat prompt box, followed by a command.

To see all available slash commands, type / in the chat prompt box. For more information, see GitHub Copilot Chat cheat sheet.

Copilot agent mode

Use agent mode when you have a specific task in mind and want to enable Copilot to autonomously edit your code. In agent mode, Copilot determines which files to make changes to, offers code changes and terminal commands to complete the task, and iterates to remediate issues until the original task is complete.

Agent mode is best suited to use cases where:

  • Your task is complex, and involves multiple steps, iterations, and error handling.
  • You want Copilot to determine the necessary steps to take to complete the task.
  • The task requires Copilot to integrate with external applications, such as an MCP server.

Using agent mode

  1. To open the chat view, click Copilot in the menu bar, then click Open Chat.
  2. At the bottom of the chat panel, select Agent from the mode dropdown.
  3. Optionally, add relevant files to the working set view to indicate to Copilot which files you want to work on.
  4. Submit a prompt. In response to your prompt, Copilot streams the edits in the editor, updates the working set, and if necessary, suggests terminal commands to run.
  5. Review the changes. If Copilot suggested terminal commands, confirm whether or not Copilot can run them. In response, Copilot iterates and performs additional actions to complete the task in your original prompt.

When you use Copilot agent mode, each prompt you enter counts as one premium request, multiplied by the model’s multiplier. For example, if you're using the included model—which has a multiplier of 0—your prompts won’t consume any premium requests. Copilot may take several follow-up actions to complete your task, but these follow-up actions do not count toward your premium request usage. Only the prompts you enter are billed—tool calls or background steps taken by the agent are not charged.

The total number of premium requests you use depends on how many prompts you enter and which model you select. See Requests in GitHub Copilot.

File references

By default, Copilot Chat will reference the file that you have open or the code that you have selected. To attach a specific file as reference, click in the chat prompt box.

Chat management

You can open a conversation thread for each Xcode IDE to keep discussions organized across different contexts. You can also revisit previous conversations and reference past suggestions through the chat history.

Sharing feedback

To indicate whether a response was helpful, use or that appear next to the response.

Further reading

Prerequisites

If you have access to GitHub Copilot via your organization, you won't be able to use GitHub Copilot Chat if your organization owner has disabled chat. See Managing policies and features for Copilot in your organization.

Submitting prompts

You can ask Copilot Chat to give you code suggestions, explain code, generate unit tests, and suggest code fixes.

  1. To open the Copilot Chat panel, click the Copilot icon () in the status bar at the bottom of Eclipse, then click Open Chat.

  2. Enter a prompt in the prompt box, then press Enter.

    For an introduction to the kinds of prompts you can use, see Getting started with prompts for Copilot Chat.

  3. Evaluate Copilot's response, and make a follow up request if needed.

Using keywords in your prompt

You can use special keywords to help Copilot understand your prompt. For examples, see Getting started with prompts for Copilot Chat.

Slash commands

Use slash commands to avoid writing complex prompts for common scenarios. To use a slash command, type / in the chat prompt box, followed by a command. For example, use /explain to ask Copilot to explain the code in the file currently displayed in the editor.

To see all available slash commands, type / in the chat prompt box.

AI models for Copilot Chat

You can change the large language model that Copilot uses to generate responses to chat prompts, including premium models with advanced capabilities. You may find that different models perform better, or provide more useful responses, depending on the type of questions you ask. For more information see Changing the AI model for Copilot Chat.

Copilot agent mode

Use agent mode when you have a specific task in mind and want to enable Copilot to autonomously edit your code. In agent mode, Copilot determines which files to make changes to, offers code changes and terminal commands to complete the task, and iterates to remediate issues until the original task is complete.

Agent mode is best suited to use cases where:

  • Your task is complex, and involves multiple steps, iterations, and error handling.
  • You want Copilot to determine the necessary steps to take to complete the task.
  • The task requires Copilot to integrate with external applications, such as an MCP server.

Using agent mode

  1. To open the Copilot Chat panel, click the Copilot icon () in the status bar at the bottom of Eclipse, then click Open Chat.
  2. At the bottom of the chat panel, select Agent from the mode dropdown.
  3. Submit a prompt. In response to your prompt, Copilot streams the edits in the editor, updates the working set, and if necessary, suggests terminal commands to run.
  4. Review the changes. If Copilot suggested terminal commands, confirm whether or not Copilot can run them. In response, Copilot iterates and performs additional actions to complete the task in your original prompt.

When you use Copilot agent mode, each prompt you enter counts as one premium request, multiplied by the model’s multiplier. For example, if you're using the included model—which has a multiplier of 0—your prompts won’t consume any premium requests. Copilot may take several follow-up actions to complete your task, but these follow-up actions do not count toward your premium request usage. Only the prompts you enter are billed—tool calls or background steps taken by the agent are not charged.

The total number of premium requests you use depends on how many prompts you enter and which model you select. See Requests in GitHub Copilot.

Further reading

颈椎病头晕吃什么药 鸾俦是什么意思 什么哈欠 代沟是什么 高血压属于什么科
肺气不足有什么症状 片仔癀有什么功效 送命题是什么意思 英特纳雄耐尔是什么意思 b超是检查什么的
南京市长是什么级别 结膜炎角膜炎用什么眼药水 喝红花有什么作用与功效 榴莲不可以和什么一起吃 乳头痒是什么原因
万艾可是什么药 黄金微针是什么 马尿是什么意思 门齿是指什么地方 皮肤一碰就破是什么病
什么野菜降血糖hcv8jop2ns8r.cn 充电宝100wh是什么意思hcv8jop6ns2r.cn 梦见自己头发白了是什么意思hcv8jop8ns0r.cn 男性为什么长丝状疣sscsqa.com 条子是什么意思hcv8jop8ns4r.cn
什么样的田野hcv8jop3ns6r.cn 幽闭是什么意思hcv8jop0ns2r.cn 痄腮是什么意思hcv7jop6ns2r.cn 头疼是因为什么hcv8jop4ns6r.cn 1988属什么生肖hcv7jop9ns8r.cn
h代表什么单位hcv7jop9ns0r.cn 为什么微信运动总是显示步数为0hcv9jop2ns8r.cn 肚子疼应该吃什么药hcv9jop5ns8r.cn ar技术是什么意思hcv8jop0ns5r.cn 羞明畏光是什么意思hcv8jop1ns9r.cn
瘘管是什么症状hcv9jop7ns4r.cn 糖尿病患者主食应该吃什么hcv8jop7ns7r.cn cba什么时候开始比赛liaochangning.com 饿得快是什么原因hcv7jop9ns8r.cn 聚乙二醇是什么东西hcv8jop6ns3r.cn
百度