Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>AI撤销助手New to Visual Studio Code? Get it now.
AI撤销助手

AI撤销助手

WaterWan

|
3 installs
| (0) | Free
记录代码状态并按改动段撤销 AI 生成的代码
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

AI撤销助手

AI撤销助手 是一个 VS Code 插件,用于记录当前代码状态,并按“改动段”选择性撤销 AI 生成的代码。

功能

  • 记录状态(基线)
  • 刷新改动段列表
  • 勾选并撤销已选改动段
  • 清除记录并开始新一轮测试
  • 仅当前文件加速模式
  • 关键词过滤

使用步骤

  1. 打开侧边栏视图 AI撤销助手
  2. 点击 记录状态
  3. 让 AI 修改代码
  4. 点击 刷新
  5. 勾选要撤销的改动段
  6. 点击 撤销已选

命令

  • codexUndo.openSidebar:打开撤销面板
  • codexUndo.captureBaseline:记录状态
  • codexUndo.refreshHunks:刷新
  • codexUndo.revertByHunk:撤销已选
  • codexUndo.clearBaseline:清除记录

配置

  • codexUndo.maxFileSizeKB:记录时允许处理的单文件最大大小(KB)
  • codexUndo.ignoredDirectories:记录时忽略的目录
  • codexUndo.maxScanFiles:单次记录最多扫描文件数
  • codexUndo.maxDiffFilesPerRefresh:单次刷新最多比对文件数
  • codexUndo.maxHunksInView:侧边栏最大展示改动段数量
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft