Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Review CommentsNew to Visual Studio Code? Get it now.
Review Comments

Review Comments

succsoft

| (0) | Free
Add review comments on code lines with live preview and Markdown document generation
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Review Comments

VS Code 代码审查插件 — 在代码行上添加评论,侧边栏管理,生成 Markdown 文档发送给 AI。

功能

  • 行级评论 — 选中代码行,添加评论,支持行范围
  • 一般意见 — 不绑定代码位置的自由评论
  • 严重级别 — 🔴 必须修改 / 🟠 建议改进 / 🔵 可选优化(自动记住上次选择)
  • Gutter 标记 — 行号旁显示彩色评论标记
  • 侧边栏预览 — 辅助侧边栏展示所有评论,点击跳转到对应代码行
  • 文档生成 — 一键生成 Markdown 文档,附带代码片段,复制到剪贴板
  • 本地持久化 — 评论存储在 VS Code 内部存储

快捷键

快捷键 功能
Alt+R 添加评论
Alt+D 删除当前行评论
Enter 提交评论(输入框中)
Shift+Enter 换行(输入框中)

使用方式

  1. 打开代码文件,光标放在要评论的行(或选中多行)
  2. 按 Alt+R(或右键 → Add Review Comment)
  3. 右侧侧边栏自动打开,输入评论,按 Enter 提交
  4. 不引用代码时,直接在输入框输入并提交即可添加一般意见
  5. 点击侧边栏工具栏的复制/发送按钮,将 review 文档发送给 AI

配置

配置项 默认值 说明
reviewComments.autoOpenPreview true 添加第一条评论时自动打开侧边栏

安装

方式一:符号链接

ln -s $(pwd) ~/.vscode/extensions/review-comments

重启 VS Code。

方式二:打包 vsix

npm install -g @vscode/vsce
vsce package
# 然后在 VS Code 中 Cmd+Shift+P → Extensions: Install from VSIX

开发

npm install
npm run compile
# 按 F5 启动 Extension Development Host
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft