Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>ai-code-review-toolNew to Visual Studio Code? Get it now.
ai-code-review-tool

ai-code-review-tool

dshouhou

|
3 installs
| (0) | Free
Code Review By AI
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ai-code-review

工具库总结信息

功能概述

ai-code-review-tool 是一个用于代码审查的 VS Code 扩展,支持通过 AI 进行 UI 和 PHP 代码审查。该工具库的主要功能是提供两个命令:ai-ui-code-review.review 和 ai-php-code-review.review,分别用于审查 UI 和 PHP 代码。

对外导出的方法、变量和数据类型

方法
  1. activate

    • 功能: 激活扩展,注册两个命令 ai-ui-code-review.review 和 ai-php-code-review.review。
    • 参数: context: vscode.ExtensionContext。
    • 返回值: 无。
    • 使用方式:
      import { activate } from "ai-code-review-tool";
      activate(extensionContext);
      
数据类型

无。

变量

无。

使用示例

使用 activate 方法
import * as vscode from "vscode";
import { activate } from "ai-code-review-tool";

export function activate(extensionContext: vscode.ExtensionContext) {
  activate(extensionContext);
}

命令使用方法

  1. ai-ui-code-review.review

    • 功能: 使用 AI 进行 UI 代码审查。
    • 参数: uri: vscode.Uri, uris: Array<vscode.Uri>。
    • 使用方式:
      • 在 VS Code 中右键点击文件或文件夹,选择 AI UI Code Review。
  2. ai-php-code-review.review

    • 功能: 使用 AI 进行 PHP 代码审查。
    • 参数: uri: vscode.Uri, uris: Array<vscode.Uri>。
    • 使用方式:
      • 在 VS Code 中右键点击文件或文件夹,选择 AI PHP Code Review。

命令使用示例

  1. ai-ui-code-review.review

    • 在 VS Code 的资源管理器中,右键点击要审查的文件或文件夹,选择 AI UI Code Review。
  2. ai-php-code-review.review

    • 在 VS Code 的资源管理器中,右键点击要审查的文件或文件夹,选择 AI PHP Code Review。

总结

ai-code-review-tool 提供了一个简单的接口用于通过 AI 进行代码审查。主要对外暴露 activate 方法用于激活扩展和注册命令。通过 VS Code 的命令系统,用户可以方便地对 UI 和 PHP 代码进行审查。

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft