AI Review(测试版)是一项允许您查看代码库中近期更改以捕获潜在错误的功能。您可以单击各个审阅项在编辑器中查看完整上下文,并与 AI 聊天获取更多信息。
为使 AI Review 发挥有利作用,您可为 AI 提供自定义说明以使其专注于特定方面。例如,若希望 AI 专注于性能相关问题,可输入相关指令,这样 AI Review 在扫描更改时会专注于代码性能。
目前,您有以下几个审核选项可供选择:
AI Review is a feature that allows you to review your recent changes in your codebase to catch any potential bugs.AI Review是一项功能,可让您查看代码库中的最近更改以捕获任何潜在的错误。You can click into individual review items to see the full context in the editor,and chat with the AI to get more information.您可以单击各个审阅项以查看编辑器中的完整上下文,并与AI聊天以获取详细信息。[heading3][heading3]Custom Review Instructions自定义审核说明[content]In order for AI Review to work in your favor,you can provide custom instructions for the AI to focus on.For example,if you want the AI to focus on performance-related issues,you could put:为了让AI Review对您有利,您可以为AI提供自定义说明以专注于。例如,如果您希望AI专注于与性能相关的问题,您可以输入:This way,AI Review will focus on the performance of your code when scanning through your changes.这样,AI Review在扫描更改时将专注于代码的性能。[heading3][heading3]Review Options查看选项[content]Currently,you have a several options to choose from to review:目前,您有几个选项可供选择进行审核:Review Working State查看工作状态This will review your uncommitted changes.这将查看您未提交的更改。Review Diff with Main Branch查看Diff with Main BranchThis will review the diff between your current working state and the main branch.这将查看当前工作状态与main分支之间的差异。Review Last Commit查看上次提交This will review the last commit you made.这将审查您所做的最后一次提交。