Auto-sync: 2026-04-17 08:37

This commit is contained in:
2026-04-17 08:38:12 +08:00
parent 6caa1c2f47
commit a0a48bd334
247 changed files with 6577 additions and 3061 deletions

View File

@@ -0,0 +1,24 @@
---
title: "Diff文件"
type: concept
tags: [cursor, diff, code-review]
date: 2026-04-17
---
## Definition
Diff 文件是显示代码改动对比的视图,帮助开发者快速审查 AI 修改的内容。
## Context
- Cursor 代码审查功能
## Usage
1. 代码生成后进入"待审查"状态
2. 使用 Diff 功能查看具体改动
3. 支持文件逐个审查或整体接收
4. 点击"撤销"按钮可撤销改动
## Important Note
代码改动一旦生成即写入文件,未点击"撤销"按钮前持续保留,需确保先测试代码再确认保存。
## Related Entities
- [[Cursor]]