pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://docs.github.com/zh/copilot/how-tos/copilot-cli/use-copilot-cli-agents/agentic-code-review

path-product" content="copilot" data-next-head=""/>
Skip to main content

使用 GitHub Copilot CLI 请求代码审查

使用 Copilot CLI 直接从终端审查代码更改。

谁可以使用此功能?

GitHub Copilot CLI 与所有 Copilot 计划兼容。 如果从组织收到 Copilot,则必须在组织的“Settings”中启用 Copilot CLI 策略。

本文内容

关于代理式代码审查

可以使用 /review 斜杠命令,无需离开 CLI,即可让 Copilot 分析代码更改。 这样,便可以在提交之前快速获取有关更改的反馈。

  1. 键入 /review 并根据需要指定提示、路径或文件模式以缩小审阅范围,然后按 Enter
  2. 如果 Copilot 建议运行某个命令,例如用于检查差异比较或验证文件,请先检查该命令,然后使用箭头键选择选项并按 Enter
    • 选择 “是 ”以运行命令。
    • 选择 来跳过命令,并告诉 Copilot 要以不同的方式执行。
  3. 阅读 Copilot 对你的更改提供的反馈,并在代码编辑器中应用任何建议的改进。

延伸阅读

  •         [AUTOTITLE](/copilot/how-tos/copilot-cli/automate-with-actions)
    
  •         [AUTOTITLE](/copilot/how-tos/copilot-cli/add-custom-instructions)
    
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy