Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>AI Code ReviewerNew to Visual Studio Code? Get it now.
AI Code Reviewer

AI Code Reviewer

dongmingyan

|
78 installs
| (0) | Free
使用 AI 进行代码审查的 VSCode 插件 | VSCode extension for AI-powered code review
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

AI Code Review VSCode Extension | AI Code Review VSCode 插件

AI Code Review Logo
English | 中文

English

An AI-powered VSCode extension for code review, designed to help programmers write better code. By integrating advanced AI models, it provides real-time code improvement suggestions for developers.

🌟 Key Features

Two-Level Code Review

  • 🔍 File-level Review: Comprehensive analysis of entire files
  • 🎯 Function-level Review: Precise suggestions for specific functions

AI Engine Options

  • 🚀 OpenRouter API Support
  • 🔮 Deepseek API Support
  • ⚙️ Flexible switching between AI service providers through configuration

Comprehensive Code Analysis

  • 🧩 Code Logic Consistency Check
  • 📝 Naming Convention Suggestions
  • ✨ Best Practice Recommendations
  • 📊 Code Conciseness Analysis
  • 🔄 Logic Encapsulation Suggestions
  • ⚡ Performance Optimization Solutions
  • 🔒 Security Vulnerability Detection

💡 Special Features

Clean Review Result Display

  • Maximum of three high-value improvement suggestions per review
  • Each suggestion comes with a brief description and detailed explanation
  • One-click access to suggestion details
  • Accept/Reject options available

User-Friendly Operation

  • ⏳ Real-time feedback: Progress display from the start
  • 🔄 Batch application: Apply all suggestions with one click
  • ❌ Flexible cancellation: Close review results anytime

🚀 Quick Start

Installation

  1. Open VS Code
  2. Press Ctrl+P / Cmd+P
  3. Type ext install code-review-ai

Configuration

  1. Open VS Code settings
  2. Search for "AI Code Reviewer"
  3. Configure the following options:
    • AI service provider (OpenRouter/Deepseek)
    • API key
    • Language preference (English/Chinese)

Usage Guide

  1. File-level Review:
    • Right-click in the editor
    • Select "AI Review: Review Current File"
    • Wait for the review progress indicator
    • Review suggestions will appear in the sidebar
    • Click on each suggestion to see details
    • Click "Apply" to implement a suggestion
    • Click "Complete Review" to close the review panel

Preview Screenshots

Review in Progress

Code Review in Progress

Review Results

Code Review Results
  1. Function-level Review:

    • Select the function code you want to review
    • Right-click and select "AI Review: Review Function"
    • Follow the same process as file-level review
  2. Handling Suggestions:

    • Each suggestion shows:
      • Issue type (Performance/Security/Style/etc.)
      • Brief description
      • Detailed explanation
      • Code modification preview
    • Click "Apply" to implement a suggestion
    • Click "Complete Review" to close review results

⚙️ Configuration Options

Option Description Default
aiCodeReviewer.apiProvider AI service provider openrouter
aiCodeReviewer.apiKey API key -
aiCodeReviewer.language Interface language en
aiCodeReviewer.model AI model selection openrouter/anthropic/claude-3-opus-20240229

🔄 Workflow

  1. Initiate Review

    • Select file/function for review
    • Plugin shows review progress interface
  2. AI Analysis

    • AI model analyzes code quality
    • Generates improvement suggestions (max 3)
  3. Review Suggestions

    • Each suggestion includes title, type, and description
    • Expandable detailed information
    • Shows specific code modification suggestions
  4. Apply Changes

    • Accept/reject individual suggestions
    • One-click apply all suggestions
    • Cancel review process anytime

🤝 Contributing

We welcome Issues and Pull Requests to help improve this project. Before submitting, please ensure:

  1. Clear and specific Issue description
  2. Pull Requests include complete tests
  3. Follow project code standards
  4. Update relevant documentation

中文

这是一个基于人工智能的 VSCode 代码审查插件,旨在帮助程序员编写更好的代码。通过集成先进的 AI 模型,为开发者提供实时的代码改进建议。

🌟 主要特性

双层次代码审查

  • 🔍 文件级审查:对整个文件进行全面分析
  • 🎯 函数级审查:针对特定函数提供精确建议

AI 引擎选择

  • 🚀 支持 OpenRouter API
  • 🔮 支持 Deepseek API
  • ⚙️ 可通过配置灵活切换 AI 服务提供商

全方位代码分析

  • 🧩 代码逻辑自洽性检查
  • 📝 命名规范建议
  • ✨ 最佳实践推荐
  • 📊 代码简洁度分析
  • 🔄 逻辑封装建议
  • ⚡ 性能优化方案
  • 🔒 安全隐患检测

💡 特色功能

简洁的审查结果展示

  • 每次最多展示三个高价值改进建议
  • 每个建议都配有简明的说明和详细解释
  • 支持一键查看建议详情
  • 提供接受/拒绝选项

便捷的操作体验

  • ⏳ 实时反馈:审查开始即显示进度
  • 🔄 批量应用:支持一键应用所有建议
  • ❌ 灵活取消:可随时关闭审查结果

🚀 快速开始

安装

  1. 打开 VS Code
  2. 按下 Ctrl+P / Cmd+P
  3. 输入 ext install code-review-ai

配置

  1. 打开 VS Code 设置
  2. 搜索 "AI Code Reviewer"
  3. 配置以下选项:
    • AI 服务提供商(OpenRouter/Deepseek)
    • API 密钥
    • 界面语言(中文/英文)

详细使用指南

  1. 文件级审查:
    • 在编辑器中右键点击
    • 选择 "AI Review: 审查当前文件"
    • 等待审查进度指示器
    • 审查建议将出现在侧边栏
    • 点击每个建议查看详情
    • 点击"应用"接受建议
    • 点击"完成审查"关闭审查面板

预览截图

审查进行中

代码审查进行中

审查结果

代码审查结果
  1. 函数级审查:

    • 选中要审查的函数代码
    • 右键选择 "AI Review: 审查函数"
    • 按照与文件级审查相同的流程操作
  2. 处理建议:

    • 每个建议包含:
      • 问题类型(性能/安全/风格等)
      • 简要描述
      • 详细解释
      • 代码修改预览
    • 点击"应用"实施建议
    • 点击"完成审查"关闭审查结果

⚙️ 配置选项

配置项 说明 默认值
aiCodeReviewer.apiProvider AI 服务提供商 openrouter
aiCodeReviewer.apiKey API 密钥 -
aiCodeReviewer.language 界面语言 en
aiCodeReviewer.model AI 模型选择 openrouter/anthropic/claude-3-opus-20240229

🔄 工作流程

  1. 启动审查

    • 选择文件或函数进行审查
    • 插件立即显示审查进度界面
  2. AI 分析

    • AI 模型分析代码质量
    • 生成改进建议(最多3个)
  3. 查看建议

    • 每个建议包含标题、类型和说明
    • 可展开查看详细信息
    • 显示具体的代码修改建议
  4. 应用修改

    • 可单独接受/拒绝每个建议
    • 支持一键应用所有建议
    • 可随时取消审查过程

🤝 贡献指南

欢迎提交 Issue 和 Pull Request 来帮助改进这个项目。在提交之前,请确保:

  1. Issue 描述清晰具体
  2. Pull Request 包含完整的测试
  3. 遵循项目的代码规范
  4. 更新相关文档

📄 许可证

MIT License

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