[{"data":1,"prerenderedAt":3611},["ShallowReactive",2],{"article-/topics/ai/ai-code-review-refactoring-recommendations":3,"related-ai":482,"content-query-0DvUwatqPm":3251},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"topic":5,"author":11,"tags":12,"image":18,"imageQuery":19,"pexelsPhotoId":20,"pexelsUrl":21,"featured":6,"readingTime":22,"body":23,"_type":476,"_id":477,"_source":478,"_file":479,"_stem":480,"_extension":481},"/topics/ai/ai-code-review-refactoring-recommendations","ai",false,"","AI 代码审查与重构建议：从发现问题到可执行改造的工作流","系统讲解 AI 驱动代码审查与重构建议的实战方法，覆盖审查边界、风险分级、重构优先级、回归验证与团队治理，帮助你把 AI 建议转化为可落地改进。","2026-04-13","HTMLPAGE 团队",[13,14,15,16,17],"AI Code Review","Refactoring","Engineering Quality","Prompt Strategy","Software Architecture","/images/topics/ai/ai-code-review-refactoring-recommendations.jpg","ai artificial intelligence code review programming development",36598855,"https://www.pexels.com/photo/developer-reviewing-code-on-tablet-in-office-36598855/",16,{"type":24,"children":25,"toc":463},"root",[26,34,40,45,49,55,60,80,85,103,108,111,117,222,227,230,236,241,259,264,267,273,278,296,301,304,310,334,339,342,348,371,376,379,385,413,416,422,427,432],{"type":27,"tag":28,"props":29,"children":31},"element","h2",{"id":30},"ai-代码审查与重构建议从发现问题到可执行改造的工作流",[32],{"type":33,"value":8},"text",{"type":27,"tag":35,"props":36,"children":37},"p",{},[38],{"type":33,"value":39},"很多团队已经在用 AI 生成代码，但在“审查和重构”阶段仍停留在低效模式：要么完全相信 AI 建议，要么完全不敢用。真正有效的方式，是把 AI 当成审查放大器，而不是最终裁判。",{"type":27,"tag":35,"props":41,"children":42},{},[43],{"type":33,"value":44},"AI 的优势在于快速扫描和结构化提炼，人类的优势在于业务判断和风险决策。两者配合，才能把代码质量做成持续能力。",{"type":27,"tag":46,"props":47,"children":48},"hr",{},[],{"type":27,"tag":28,"props":50,"children":52},{"id":51},"_1-先定义-ai-审查的职责边界",[53],{"type":33,"value":54},"1. 先定义 AI 审查的职责边界",{"type":27,"tag":35,"props":56,"children":57},{},[58],{"type":33,"value":59},"AI 更适合：",{"type":27,"tag":61,"props":62,"children":63},"ul",{},[64,70,75],{"type":27,"tag":65,"props":66,"children":67},"li",{},[68],{"type":33,"value":69},"扫描重复模式和明显坏味道",{"type":27,"tag":65,"props":71,"children":72},{},[73],{"type":33,"value":74},"按规则输出风险清单",{"type":27,"tag":65,"props":76,"children":77},{},[78],{"type":33,"value":79},"给出备选重构路径",{"type":27,"tag":35,"props":81,"children":82},{},[83],{"type":33,"value":84},"AI 不应直接决定：",{"type":27,"tag":61,"props":86,"children":87},{},[88,93,98],{"type":27,"tag":65,"props":89,"children":90},{},[91],{"type":33,"value":92},"业务语义是否正确",{"type":27,"tag":65,"props":94,"children":95},{},[96],{"type":33,"value":97},"关键架构是否应改动",{"type":27,"tag":65,"props":99,"children":100},{},[101],{"type":33,"value":102},"是否可以越过测试直接发布",{"type":27,"tag":35,"props":104,"children":105},{},[106],{"type":33,"value":107},"边界清楚，审查效率才会稳定。",{"type":27,"tag":46,"props":109,"children":110},{},[],{"type":27,"tag":28,"props":112,"children":114},{"id":113},"_2-风险分级是重构优先级的前提",[115],{"type":33,"value":116},"2. 风险分级是重构优先级的前提",{"type":27,"tag":118,"props":119,"children":120},"table",{},[121,145],{"type":27,"tag":122,"props":123,"children":124},"thead",{},[125],{"type":27,"tag":126,"props":127,"children":128},"tr",{},[129,135,140],{"type":27,"tag":130,"props":131,"children":132},"th",{},[133],{"type":33,"value":134},"风险级别",{"type":27,"tag":130,"props":136,"children":137},{},[138],{"type":33,"value":139},"典型问题",{"type":27,"tag":130,"props":141,"children":142},{},[143],{"type":33,"value":144},"处理策略",{"type":27,"tag":146,"props":147,"children":148},"tbody",{},[149,168,186,204],{"type":27,"tag":126,"props":150,"children":151},{},[152,158,163],{"type":27,"tag":153,"props":154,"children":155},"td",{},[156],{"type":33,"value":157},"P0",{"type":27,"tag":153,"props":159,"children":160},{},[161],{"type":33,"value":162},"安全漏洞、权限绕过、数据破坏",{"type":27,"tag":153,"props":164,"children":165},{},[166],{"type":33,"value":167},"立即修复并阻断发布",{"type":27,"tag":126,"props":169,"children":170},{},[171,176,181],{"type":27,"tag":153,"props":172,"children":173},{},[174],{"type":33,"value":175},"P1",{"type":27,"tag":153,"props":177,"children":178},{},[179],{"type":33,"value":180},"关键路径不稳定、性能明显退化",{"type":27,"tag":153,"props":182,"children":183},{},[184],{"type":33,"value":185},"本迭代处理并补回归",{"type":27,"tag":126,"props":187,"children":188},{},[189,194,199],{"type":27,"tag":153,"props":190,"children":191},{},[192],{"type":33,"value":193},"P2",{"type":27,"tag":153,"props":195,"children":196},{},[197],{"type":33,"value":198},"可维护性问题、重复代码",{"type":27,"tag":153,"props":200,"children":201},{},[202],{"type":33,"value":203},"合并到重构计划",{"type":27,"tag":126,"props":205,"children":206},{},[207,212,217],{"type":27,"tag":153,"props":208,"children":209},{},[210],{"type":33,"value":211},"P3",{"type":27,"tag":153,"props":213,"children":214},{},[215],{"type":33,"value":216},"风格一致性与轻微优化",{"type":27,"tag":153,"props":218,"children":219},{},[220],{"type":33,"value":221},"按节奏治理",{"type":27,"tag":35,"props":223,"children":224},{},[225],{"type":33,"value":226},"没有分级，AI 建议会变成“看起来都重要”的噪音列表。",{"type":27,"tag":46,"props":228,"children":229},{},[],{"type":27,"tag":28,"props":231,"children":233},{"id":232},"_3-审查提示词要约束输出格式",[234],{"type":33,"value":235},"3. 审查提示词要约束输出格式",{"type":27,"tag":35,"props":237,"children":238},{},[239],{"type":33,"value":240},"有效提示词必须限定：",{"type":27,"tag":61,"props":242,"children":243},{},[244,249,254],{"type":27,"tag":65,"props":245,"children":246},{},[247],{"type":33,"value":248},"审查范围（文件/模块）",{"type":27,"tag":65,"props":250,"children":251},{},[252],{"type":33,"value":253},"审查维度（安全、性能、可维护性、测试）",{"type":27,"tag":65,"props":255,"children":256},{},[257],{"type":33,"value":258},"输出结构（问题、证据、修复建议、回归点）",{"type":27,"tag":35,"props":260,"children":261},{},[262],{"type":33,"value":263},"否则最常见结果是：建议很多，可执行信息很少。",{"type":27,"tag":46,"props":265,"children":266},{},[],{"type":27,"tag":28,"props":268,"children":270},{"id":269},"_4-失败案例一次性大重构导致隐性回归",[271],{"type":33,"value":272},"4. 失败案例：一次性大重构导致隐性回归",{"type":27,"tag":35,"props":274,"children":275},{},[276],{"type":33,"value":277},"有团队让 AI 给出“全面重构建议”，然后在一次 PR 里改动几十个文件。结果：",{"type":27,"tag":61,"props":279,"children":280},{},[281,286,291],{"type":27,"tag":65,"props":282,"children":283},{},[284],{"type":33,"value":285},"回归范围失控",{"type":27,"tag":65,"props":287,"children":288},{},[289],{"type":33,"value":290},"测试覆盖不足",{"type":27,"tag":65,"props":292,"children":293},{},[294],{"type":33,"value":295},"责任边界不清",{"type":27,"tag":35,"props":297,"children":298},{},[299],{"type":33,"value":300},"问题不在 AI，而在执行策略。重构应分批、分层、可回滚。",{"type":27,"tag":46,"props":302,"children":303},{},[],{"type":27,"tag":28,"props":305,"children":307},{"id":306},"_5-推荐工作流发现-评估-改造-验证",[308],{"type":33,"value":309},"5. 推荐工作流：发现 -> 评估 -> 改造 -> 验证",{"type":27,"tag":311,"props":312,"children":313},"ol",{},[314,319,324,329],{"type":27,"tag":65,"props":315,"children":316},{},[317],{"type":33,"value":318},"发现：AI 产出结构化问题清单。",{"type":27,"tag":65,"props":320,"children":321},{},[322],{"type":33,"value":323},"评估：人工确认业务影响与风险等级。",{"type":27,"tag":65,"props":325,"children":326},{},[327],{"type":33,"value":328},"改造：按优先级分批落地，单批改动可回滚。",{"type":27,"tag":65,"props":330,"children":331},{},[332],{"type":33,"value":333},"验证：每批都有回归清单和自动化检查。",{"type":27,"tag":35,"props":335,"children":336},{},[337],{"type":33,"value":338},"这条链路能把“建议”转成“可交付结果”。",{"type":27,"tag":46,"props":340,"children":341},{},[],{"type":27,"tag":28,"props":343,"children":345},{"id":344},"_6-与团队治理结合",[346],{"type":33,"value":347},"6. 与团队治理结合",{"type":27,"tag":61,"props":349,"children":350},{},[351,356,361,366],{"type":27,"tag":65,"props":352,"children":353},{},[354],{"type":33,"value":355},"把高频问题沉淀到 review checklist",{"type":27,"tag":65,"props":357,"children":358},{},[359],{"type":33,"value":360},"对常见反模式建立 lint 或静态规则",{"type":27,"tag":65,"props":362,"children":363},{},[364],{"type":33,"value":365},"在 PR 模板里固定 AI 审查字段",{"type":27,"tag":65,"props":367,"children":368},{},[369],{"type":33,"value":370},"复盘 AI 误报并持续优化提示词",{"type":27,"tag":35,"props":372,"children":373},{},[374],{"type":33,"value":375},"AI 审查真正的长期价值，在于推动团队流程升级，而不只是减少几次 review 时间。",{"type":27,"tag":46,"props":377,"children":378},{},[],{"type":27,"tag":28,"props":380,"children":382},{"id":381},"_7-checklistai-审查与重构是否可控",[383],{"type":33,"value":384},"7. Checklist：AI 审查与重构是否可控",{"type":27,"tag":61,"props":386,"children":387},{},[388,393,398,403,408],{"type":27,"tag":65,"props":389,"children":390},{},[391],{"type":33,"value":392},"是否明确了审查边界与禁止越界区域",{"type":27,"tag":65,"props":394,"children":395},{},[396],{"type":33,"value":397},"是否有风险分级与优先级机制",{"type":27,"tag":65,"props":399,"children":400},{},[401],{"type":33,"value":402},"是否把建议转换成可执行任务清单",{"type":27,"tag":65,"props":404,"children":405},{},[406],{"type":33,"value":407},"是否分批重构并具备回滚路径",{"type":27,"tag":65,"props":409,"children":410},{},[411],{"type":33,"value":412},"是否在每批次后做回归验证",{"type":27,"tag":46,"props":414,"children":415},{},[],{"type":27,"tag":28,"props":417,"children":419},{"id":418},"_8-结论",[420],{"type":33,"value":421},"8. 结论",{"type":27,"tag":35,"props":423,"children":424},{},[425],{"type":33,"value":426},"AI 在代码审查与重构中的最佳角色，是“快速发现问题 + 结构化输出建议”。当团队把它嵌入标准工作流，并保持人工决策闭环，代码质量会更稳定，重构也会更可控。",{"type":27,"tag":35,"props":428,"children":429},{},[430],{"type":33,"value":431},"进一步阅读：",{"type":27,"tag":61,"props":433,"children":434},{},[435,445,454],{"type":27,"tag":65,"props":436,"children":437},{},[438],{"type":27,"tag":439,"props":440,"children":442},"a",{"href":441},"/topics/ai/cursor-code-review-prompts",[443],{"type":33,"value":444},"Cursor Code Review 提示词怎么写",{"type":27,"tag":65,"props":446,"children":447},{},[448],{"type":27,"tag":439,"props":449,"children":451},{"href":450},"/topics/frontend/code-quality-gates-ci-integration",[452],{"type":33,"value":453},"代码质量门禁与 CI 集成",{"type":27,"tag":65,"props":455,"children":456},{},[457],{"type":27,"tag":439,"props":458,"children":460},{"href":459},"/topics/ai/ai-agent-evaluation-framework-playbook",[461],{"type":33,"value":462},"AI Agent 评估框架完全指南",{"title":7,"searchDepth":464,"depth":464,"links":465},3,[466,468,469,470,471,472,473,474,475],{"id":30,"depth":467,"text":8},2,{"id":51,"depth":467,"text":54},{"id":113,"depth":467,"text":116},{"id":232,"depth":467,"text":235},{"id":269,"depth":467,"text":272},{"id":306,"depth":467,"text":309},{"id":344,"depth":467,"text":347},{"id":381,"depth":467,"text":384},{"id":418,"depth":467,"text":421},"markdown","content:topics:ai:ai-code-review-refactoring-recommendations.md","content","topics/ai/ai-code-review-refactoring-recommendations.md","topics/ai/ai-code-review-refactoring-recommendations","md",[483,1637,2587],{"_path":484,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":485,"description":486,"date":487,"topic":5,"author":11,"tags":488,"image":494,"imageAlt":495,"pexelsPhotoId":496,"pexelsUrl":497,"readingTime":498,"body":499,"_type":476,"_id":1634,"_source":478,"_file":1635,"_stem":1636,"_extension":481},"/topics/ai/cursor-keyboard-shortcuts-cheatsheet","Cursor 快捷键速查表（macOS/Windows）：从“会用”到“能提效”的 10 个工作流","把 Cursor 常用快捷键按任务分组（查代码、改代码、多文件、对话、审查与回滚），给出可直接照抄的工作流与最小回归清单，避免“快捷键背了也没变快”。","2026-03-02",[489,490,491,492,493],"Cursor","快捷键","AI IDE","VS Code","开发效率","/images/topics/ai/cursor-keyboard-shortcuts-cheatsheet.jpg","彩色机械键盘与鼠标的工作台面",34563105,"https://www.pexels.com/photo/colorful-mechanical-keyboard-and-mouse-setup-34563105/",12,{"type":24,"children":500,"toc":1608},[501,506,524,529,557,562,598,601,607,612,645,650,673,676,682,687,906,915,918,924,931,950,958,979,984,990,1005,1036,1041,1054,1060,1079,1097,1105,1110,1116,1121,1142,1150,1156,1161,1184,1189,1195,1208,1214,1232,1250,1256,1267,1285,1291,1302,1308,1313,1356,1359,1365,1373,1426,1429,1435,1441,1446,1451,1474,1492,1497,1522,1525,1531,1537,1542,1548,1553,1559,1564,1567,1573],{"type":27,"tag":35,"props":502,"children":503},{},[504],{"type":33,"value":505},"如果你在搜“Cursor 快捷键”，你大概率不是想背一张表，而是想解决这类问题：",{"type":27,"tag":61,"props":507,"children":508},{},[509,514,519],{"type":27,"tag":65,"props":510,"children":511},{},[512],{"type":33,"value":513},"为什么我用了 AI，还是很慢？（对话来回太多、改动不可控）",{"type":27,"tag":65,"props":515,"children":516},{},[517],{"type":33,"value":518},"为什么它“看起来懂了”，却改错文件/改出回归？（上下文与范围没锁住）",{"type":27,"tag":65,"props":520,"children":521},{},[522],{"type":33,"value":523},"多文件改动怎么做得安全？（验收、回滚、最小回归集）",{"type":27,"tag":35,"props":525,"children":526},{},[527],{"type":33,"value":528},"这篇文章给你两份东西：",{"type":27,"tag":311,"props":530,"children":531},{},[532,545],{"type":27,"tag":65,"props":533,"children":534},{},[535,537,543],{"type":33,"value":536},"一张",{"type":27,"tag":538,"props":539,"children":540},"strong",{},[541],{"type":33,"value":542},"按任务分组",{"type":33,"value":544},"的快捷键表（不是按功能堆在一起）",{"type":27,"tag":65,"props":546,"children":547},{},[548,550,555],{"type":33,"value":549},"一套“从需求到落地”的",{"type":27,"tag":538,"props":551,"children":552},{},[553],{"type":33,"value":554},"最小闭环工作流",{"type":33,"value":556},"（每一步都有快捷键）",{"type":27,"tag":35,"props":558,"children":559},{},[560],{"type":33,"value":561},"想看系统玩法：",{"type":27,"tag":61,"props":563,"children":564},{},[565,576,587],{"type":27,"tag":65,"props":566,"children":567},{},[568,570],{"type":33,"value":569},"入门教程看：",{"type":27,"tag":439,"props":571,"children":573},{"href":572},"/topics/ai/cursor-tutorial",[574],{"type":33,"value":575},"Cursor 使用教程（2026）",{"type":27,"tag":65,"props":577,"children":578},{},[579,581],{"type":33,"value":580},"进阶玩法看：",{"type":27,"tag":439,"props":582,"children":584},{"href":583},"/topics/ai/cursor-editor-guide",[585],{"type":33,"value":586},"Cursor 编辑器深度玩法",{"type":27,"tag":65,"props":588,"children":589},{},[590,592],{"type":33,"value":591},"规则与忽略看：",{"type":27,"tag":439,"props":593,"children":595},{"href":594},"/topics/ai/cursor-rules-cursorrules",[596],{"type":33,"value":597},"Cursor Rules 与 .cursorrules",{"type":27,"tag":46,"props":599,"children":600},{},[],{"type":27,"tag":28,"props":602,"children":604},{"id":603},"先给结论提效不是按得快而是闭环更短",[605],{"type":33,"value":606},"先给结论：提效不是“按得快”，而是“闭环更短”",{"type":27,"tag":35,"props":608,"children":609},{},[610],{"type":33,"value":611},"你可以把 Cursor 的快捷键理解为 3 条流水线：",{"type":27,"tag":61,"props":613,"children":614},{},[615,625,635],{"type":27,"tag":65,"props":616,"children":617},{},[618,623],{"type":27,"tag":538,"props":619,"children":620},{},[621],{"type":33,"value":622},"改一小段",{"type":33,"value":624},"（内联编辑）：把改动限制在一个函数/一段样式",{"type":27,"tag":65,"props":626,"children":627},{},[628,633],{"type":27,"tag":538,"props":629,"children":630},{},[631],{"type":33,"value":632},"改一组文件",{"type":33,"value":634},"（Composer）：把改动限制在一组明确文件，并要求输出 diff + 验收点",{"type":27,"tag":65,"props":636,"children":637},{},[638,643],{"type":27,"tag":538,"props":639,"children":640},{},[641],{"type":33,"value":642},"聊清楚再动手",{"type":33,"value":644},"（侧边对话）：先对齐目标、范围、验收、回滚",{"type":27,"tag":35,"props":646,"children":647},{},[648],{"type":33,"value":649},"当你觉得“它乱改/改太大”时，往往不是快捷键没记住，而是缺了两件事：",{"type":27,"tag":61,"props":651,"children":652},{},[653,663],{"type":27,"tag":65,"props":654,"children":655},{},[656,658],{"type":33,"value":657},"没有在动手前锁定",{"type":27,"tag":538,"props":659,"children":660},{},[661],{"type":33,"value":662},"范围",{"type":27,"tag":65,"props":664,"children":665},{},[666,668],{"type":33,"value":667},"没有在接受改动前准备",{"type":27,"tag":538,"props":669,"children":670},{},[671],{"type":33,"value":672},"验收/回滚",{"type":27,"tag":46,"props":674,"children":675},{},[],{"type":27,"tag":28,"props":677,"children":679},{"id":678},"快捷键速查表按任务分组",[680],{"type":33,"value":681},"快捷键速查表（按任务分组）",{"type":27,"tag":35,"props":683,"children":684},{},[685],{"type":33,"value":686},"说明：下表按“你正在做什么”组织，而不是按“功能名字”组织。不同版本快捷键可能略有差异，但核心逻辑一致。",{"type":27,"tag":118,"props":688,"children":689},{},[690,716],{"type":27,"tag":122,"props":691,"children":692},{},[693],{"type":27,"tag":126,"props":694,"children":695},{},[696,701,706,711],{"type":27,"tag":130,"props":697,"children":698},{},[699],{"type":33,"value":700},"任务",{"type":27,"tag":130,"props":702,"children":703},{},[704],{"type":33,"value":705},"macOS",{"type":27,"tag":130,"props":707,"children":708},{},[709],{"type":33,"value":710},"Windows",{"type":27,"tag":130,"props":712,"children":713},{},[714],{"type":33,"value":715},"你该在什么时候用",{"type":27,"tag":146,"props":717,"children":718},{},[719,751,782,813,844,875],{"type":27,"tag":126,"props":720,"children":721},{},[722,727,737,746],{"type":27,"tag":153,"props":723,"children":724},{},[725],{"type":33,"value":726},"改一小段（最安全）",{"type":27,"tag":153,"props":728,"children":729},{},[730],{"type":27,"tag":731,"props":732,"children":734},"code",{"className":733},[],[735],{"type":33,"value":736},"Cmd + K",{"type":27,"tag":153,"props":738,"children":739},{},[740],{"type":27,"tag":731,"props":741,"children":743},{"className":742},[],[744],{"type":33,"value":745},"Ctrl + K",{"type":27,"tag":153,"props":747,"children":748},{},[749],{"type":33,"value":750},"只想改一个函数/一段 CSS，不想动别的",{"type":27,"tag":126,"props":752,"children":753},{},[754,759,768,777],{"type":27,"tag":153,"props":755,"children":756},{},[757],{"type":33,"value":758},"打开 AI 对话（先对齐再动手）",{"type":27,"tag":153,"props":760,"children":761},{},[762],{"type":27,"tag":731,"props":763,"children":765},{"className":764},[],[766],{"type":33,"value":767},"Cmd + L",{"type":27,"tag":153,"props":769,"children":770},{},[771],{"type":27,"tag":731,"props":772,"children":774},{"className":773},[],[775],{"type":33,"value":776},"Ctrl + L",{"type":27,"tag":153,"props":778,"children":779},{},[780],{"type":33,"value":781},"需要澄清目标、制定步骤、给验收点",{"type":27,"tag":126,"props":783,"children":784},{},[785,790,799,808],{"type":27,"tag":153,"props":786,"children":787},{},[788],{"type":33,"value":789},"多文件编辑（有组织地改一组文件）",{"type":27,"tag":153,"props":791,"children":792},{},[793],{"type":27,"tag":731,"props":794,"children":796},{"className":795},[],[797],{"type":33,"value":798},"Cmd + I",{"type":27,"tag":153,"props":800,"children":801},{},[802],{"type":27,"tag":731,"props":803,"children":805},{"className":804},[],[806],{"type":33,"value":807},"Ctrl + I",{"type":27,"tag":153,"props":809,"children":810},{},[811],{"type":33,"value":812},"改动涉及多个文件：组件+样式+测试",{"type":27,"tag":126,"props":814,"children":815},{},[816,821,830,839],{"type":27,"tag":153,"props":817,"children":818},{},[819],{"type":33,"value":820},"把选中代码加入对话上下文",{"type":27,"tag":153,"props":822,"children":823},{},[824],{"type":27,"tag":731,"props":825,"children":827},{"className":826},[],[828],{"type":33,"value":829},"Cmd + Shift + L",{"type":27,"tag":153,"props":831,"children":832},{},[833],{"type":27,"tag":731,"props":834,"children":836},{"className":835},[],[837],{"type":33,"value":838},"Ctrl + Shift + L",{"type":27,"tag":153,"props":840,"children":841},{},[842],{"type":33,"value":843},"让 AI 只看你选的片段（降低噪音）",{"type":27,"tag":126,"props":845,"children":846},{},[847,852,861,870],{"type":27,"tag":153,"props":848,"children":849},{},[850],{"type":33,"value":851},"接受当前建议",{"type":27,"tag":153,"props":853,"children":854},{},[855],{"type":27,"tag":731,"props":856,"children":858},{"className":857},[],[859],{"type":33,"value":860},"Cmd + Y",{"type":27,"tag":153,"props":862,"children":863},{},[864],{"type":27,"tag":731,"props":865,"children":867},{"className":866},[],[868],{"type":33,"value":869},"Ctrl + Y",{"type":27,"tag":153,"props":871,"children":872},{},[873],{"type":33,"value":874},"你已经准备好验收/回滚，并确认改动范围",{"type":27,"tag":126,"props":876,"children":877},{},[878,883,892,901],{"type":27,"tag":153,"props":879,"children":880},{},[881],{"type":33,"value":882},"拒绝当前建议",{"type":27,"tag":153,"props":884,"children":885},{},[886],{"type":27,"tag":731,"props":887,"children":889},{"className":888},[],[890],{"type":33,"value":891},"Cmd + N",{"type":27,"tag":153,"props":893,"children":894},{},[895],{"type":27,"tag":731,"props":896,"children":898},{"className":897},[],[899],{"type":33,"value":900},"Ctrl + N",{"type":27,"tag":153,"props":902,"children":903},{},[904],{"type":33,"value":905},"改得太大、改错方向，立刻收手",{"type":27,"tag":907,"props":908,"children":909},"blockquote",{},[910],{"type":27,"tag":35,"props":911,"children":912},{},[913],{"type":33,"value":914},"小技巧：把“改一小段”当默认路径。只有当你能清晰写出“会改哪几类文件、怎么验收”时再进入多文件。",{"type":27,"tag":46,"props":916,"children":917},{},[],{"type":27,"tag":28,"props":919,"children":921},{"id":920},"_10-个可直接照抄的提效工作流每个都能闭环",[922],{"type":33,"value":923},"10 个可直接照抄的提效工作流（每个都能闭环）",{"type":27,"tag":925,"props":926,"children":928},"h3",{"id":927},"工作流-1需求计划小步改新手最稳",[929],{"type":33,"value":930},"工作流 1：需求→计划→小步改（新手最稳）",{"type":27,"tag":311,"props":932,"children":933},{},[934,945],{"type":27,"tag":65,"props":935,"children":936},{},[937,943],{"type":27,"tag":731,"props":938,"children":940},{"className":939},[],[941],{"type":33,"value":942},"Cmd/Ctrl + L",{"type":33,"value":944}," 打开对话",{"type":27,"tag":65,"props":946,"children":947},{},[948],{"type":33,"value":949},"先发这段（可复制）：",{"type":27,"tag":907,"props":951,"children":952},{},[953],{"type":27,"tag":35,"props":954,"children":955},{},[956],{"type":33,"value":957},"目标：……\n范围：只修改以下文件/模块：……\n非目标：……（明确不做）\n验收：……（可测试/可手动检查）\n输出格式：先给计划，再逐步执行；每一步写出 diff 摘要。",{"type":27,"tag":311,"props":959,"children":960},{"start":464},[961,966],{"type":27,"tag":65,"props":962,"children":963},{},[964],{"type":33,"value":965},"让 AI 先给“计划（3~6 步）”，你确认后再执行",{"type":27,"tag":65,"props":967,"children":968},{},[969,971,977],{"type":33,"value":970},"任何一步涉及改代码：优先回到编辑区，选中片段用 ",{"type":27,"tag":731,"props":972,"children":974},{"className":973},[],[975],{"type":33,"value":976},"Cmd/Ctrl + K",{"type":33,"value":978}," 小步改",{"type":27,"tag":35,"props":980,"children":981},{},[982],{"type":33,"value":983},"为什么有效：你把“想法”变成了“可执行约束”，这就是 GEO（面向 AI/模型的可理解结构）。",{"type":27,"tag":925,"props":985,"children":987},{"id":986},"工作流-2只改一个函数高频低风险",[988],{"type":33,"value":989},"工作流 2：只改一个函数（高频、低风险）",{"type":27,"tag":61,"props":991,"children":992},{},[993],{"type":27,"tag":65,"props":994,"children":995},{},[996,998,1003],{"type":33,"value":997},"选中函数 → ",{"type":27,"tag":731,"props":999,"children":1001},{"className":1000},[],[1002],{"type":33,"value":976},{"type":33,"value":1004}," → 输入指令：",{"type":27,"tag":907,"props":1006,"children":1007},{},[1008,1013],{"type":27,"tag":35,"props":1009,"children":1010},{},[1011],{"type":33,"value":1012},"把这段改成更可读：",{"type":27,"tag":61,"props":1014,"children":1015},{},[1016,1021,1026,1031],{"type":27,"tag":65,"props":1017,"children":1018},{},[1019],{"type":33,"value":1020},"用 async/await",{"type":27,"tag":65,"props":1022,"children":1023},{},[1024],{"type":33,"value":1025},"错误处理不要吞掉",{"type":27,"tag":65,"props":1027,"children":1028},{},[1029],{"type":33,"value":1030},"添加类型（若可推断）",{"type":27,"tag":65,"props":1032,"children":1033},{},[1034],{"type":33,"value":1035},"不要改函数签名",{"type":27,"tag":35,"props":1037,"children":1038},{},[1039],{"type":33,"value":1040},"验收方式（强制）：",{"type":27,"tag":61,"props":1042,"children":1043},{},[1044,1049],{"type":27,"tag":65,"props":1045,"children":1046},{},[1047],{"type":33,"value":1048},"输出前后函数行为一致（输入/输出）",{"type":27,"tag":65,"props":1050,"children":1051},{},[1052],{"type":33,"value":1053},"失败分支有可观测日志（不要悄悄 return null）",{"type":27,"tag":925,"props":1055,"children":1057},{"id":1056},"工作流-3多文件改动先定文件清单",[1058],{"type":33,"value":1059},"工作流 3：多文件改动（先定“文件清单”）",{"type":27,"tag":311,"props":1061,"children":1062},{},[1063,1074],{"type":27,"tag":65,"props":1064,"children":1065},{},[1066,1072],{"type":27,"tag":731,"props":1067,"children":1069},{"className":1068},[],[1070],{"type":33,"value":1071},"Cmd/Ctrl + I",{"type":33,"value":1073}," 进入多文件",{"type":27,"tag":65,"props":1075,"children":1076},{},[1077],{"type":33,"value":1078},"先让 AI 输出：",{"type":27,"tag":61,"props":1080,"children":1081},{},[1082,1087,1092],{"type":27,"tag":65,"props":1083,"children":1084},{},[1085],{"type":33,"value":1086},"预计会改哪些文件（最多 5 个）",{"type":27,"tag":65,"props":1088,"children":1089},{},[1090],{"type":33,"value":1091},"每个文件改什么",{"type":27,"tag":65,"props":1093,"children":1094},{},[1095],{"type":33,"value":1096},"每一步怎么验收",{"type":27,"tag":311,"props":1098,"children":1099},{"start":464},[1100],{"type":27,"tag":65,"props":1101,"children":1102},{},[1103],{"type":33,"value":1104},"你确认文件清单后再开始生成改动",{"type":27,"tag":35,"props":1106,"children":1107},{},[1108],{"type":33,"value":1109},"关键点：多文件最容易翻车的是“它把你没想到的文件也改了”。所以文件清单是第一道闸门。",{"type":27,"tag":925,"props":1111,"children":1113},{"id":1112},"工作流-4把上下文噪音砍掉防跑偏",[1114],{"type":33,"value":1115},"工作流 4：把“上下文噪音”砍掉（防跑偏）",{"type":27,"tag":35,"props":1117,"children":1118},{},[1119],{"type":33,"value":1120},"当你怀疑它在胡说/乱改时：",{"type":27,"tag":61,"props":1122,"children":1123},{},[1124,1137],{"type":27,"tag":65,"props":1125,"children":1126},{},[1127,1129,1135],{"type":33,"value":1128},"只选择关键代码片段 → ",{"type":27,"tag":731,"props":1130,"children":1132},{"className":1131},[],[1133],{"type":33,"value":1134},"Cmd/Ctrl + Shift + L",{"type":33,"value":1136}," 加入对话",{"type":27,"tag":65,"props":1138,"children":1139},{},[1140],{"type":33,"value":1141},"然后在对话里要求：",{"type":27,"tag":907,"props":1143,"children":1144},{},[1145],{"type":27,"tag":35,"props":1146,"children":1147},{},[1148],{"type":33,"value":1149},"只基于我提供的代码片段回答，不要假设其它文件存在。",{"type":27,"tag":925,"props":1151,"children":1153},{"id":1152},"工作流-5生成变更说明让-code-review-变快",[1154],{"type":33,"value":1155},"工作流 5：生成变更说明（让 code review 变快）",{"type":27,"tag":35,"props":1157,"children":1158},{},[1159],{"type":33,"value":1160},"改完后在对话里让它输出：",{"type":27,"tag":61,"props":1162,"children":1163},{},[1164,1169,1174,1179],{"type":27,"tag":65,"props":1165,"children":1166},{},[1167],{"type":33,"value":1168},"改动摘要（3~7 条）",{"type":27,"tag":65,"props":1170,"children":1171},{},[1172],{"type":33,"value":1173},"风险点（依赖/边界条件）",{"type":27,"tag":65,"props":1175,"children":1176},{},[1177],{"type":33,"value":1178},"回滚方式",{"type":27,"tag":65,"props":1180,"children":1181},{},[1182],{"type":33,"value":1183},"验收步骤",{"type":27,"tag":35,"props":1185,"children":1186},{},[1187],{"type":33,"value":1188},"这套结构能直接贴进 PR 描述。",{"type":27,"tag":925,"props":1190,"children":1192},{"id":1191},"工作流-6写最小回归集不写回归-等事故",[1193],{"type":33,"value":1194},"工作流 6：写“最小回归集”（不写回归 = 等事故）",{"type":27,"tag":35,"props":1196,"children":1197},{},[1198,1200,1206],{"type":33,"value":1199},"每次改动都至少做 10 条最小回归（见下文清单）。你可以把它写在 ",{"type":27,"tag":731,"props":1201,"children":1203},{"className":1202},[],[1204],{"type":33,"value":1205},"README",{"type":33,"value":1207}," 或团队 wiki。",{"type":27,"tag":925,"props":1209,"children":1211},{"id":1210},"工作流-7把接受建议变成最后一步",[1212],{"type":33,"value":1213},"工作流 7：把“接受建议”变成最后一步",{"type":27,"tag":35,"props":1215,"children":1216},{},[1217,1223,1225,1230],{"type":27,"tag":731,"props":1218,"children":1220},{"className":1219},[],[1221],{"type":33,"value":1222},"Cmd/Ctrl + Y",{"type":33,"value":1224}," 应该是",{"type":27,"tag":538,"props":1226,"children":1227},{},[1228],{"type":33,"value":1229},"最后一步",{"type":33,"value":1231},"：",{"type":27,"tag":61,"props":1233,"children":1234},{},[1235,1240,1245],{"type":27,"tag":65,"props":1236,"children":1237},{},[1238],{"type":33,"value":1239},"你已经看过 diff",{"type":27,"tag":65,"props":1241,"children":1242},{},[1243],{"type":33,"value":1244},"你能说清楚“怎么验收”",{"type":27,"tag":65,"props":1246,"children":1247},{},[1248],{"type":33,"value":1249},"你知道“怎么回滚”",{"type":27,"tag":925,"props":1251,"children":1253},{"id":1252},"工作流-8拒绝建议不是失败是风控动作",[1254],{"type":33,"value":1255},"工作流 8：拒绝建议不是失败，是风控动作",{"type":27,"tag":35,"props":1257,"children":1258},{},[1259,1265],{"type":27,"tag":731,"props":1260,"children":1262},{"className":1261},[],[1263],{"type":33,"value":1264},"Cmd/Ctrl + N",{"type":33,"value":1266}," 的使用时机：",{"type":27,"tag":61,"props":1268,"children":1269},{},[1270,1275,1280],{"type":27,"tag":65,"props":1271,"children":1272},{},[1273],{"type":33,"value":1274},"它开始改你没提过的东西（范围漂移）",{"type":27,"tag":65,"props":1276,"children":1277},{},[1278],{"type":33,"value":1279},"它改了 10 个文件但你只想改 1 个",{"type":27,"tag":65,"props":1281,"children":1282},{},[1283],{"type":33,"value":1284},"它为了“更优雅”引入新依赖/新抽象",{"type":27,"tag":925,"props":1286,"children":1288},{"id":1287},"工作流-9重复任务做成模板提示词不是一次性",[1289],{"type":33,"value":1290},"工作流 9：重复任务做成模板（提示词不是一次性）",{"type":27,"tag":35,"props":1292,"children":1293},{},[1294,1296,1300],{"type":33,"value":1295},"把高频任务（比如“写组件+样式+验收”）固化成模板，放进 Rules（见：",{"type":27,"tag":439,"props":1297,"children":1298},{"href":594},[1299],{"type":33,"value":597},{"type":33,"value":1301},"）。",{"type":27,"tag":925,"props":1303,"children":1305},{"id":1304},"工作流-10把快捷键表做成你自己的任务表",[1306],{"type":33,"value":1307},"工作流 10：把“快捷键表”做成你自己的任务表",{"type":27,"tag":35,"props":1309,"children":1310},{},[1311],{"type":33,"value":1312},"你不需要记住所有快捷键，只需要记住：",{"type":27,"tag":61,"props":1314,"children":1315},{},[1316,1326,1336,1346],{"type":27,"tag":65,"props":1317,"children":1318},{},[1319,1321],{"type":33,"value":1320},"小步改：",{"type":27,"tag":731,"props":1322,"children":1324},{"className":1323},[],[1325],{"type":33,"value":976},{"type":27,"tag":65,"props":1327,"children":1328},{},[1329,1331],{"type":33,"value":1330},"先对齐：",{"type":27,"tag":731,"props":1332,"children":1334},{"className":1333},[],[1335],{"type":33,"value":942},{"type":27,"tag":65,"props":1337,"children":1338},{},[1339,1341],{"type":33,"value":1340},"多文件：",{"type":27,"tag":731,"props":1342,"children":1344},{"className":1343},[],[1345],{"type":33,"value":1071},{"type":27,"tag":65,"props":1347,"children":1348},{},[1349,1351],{"type":33,"value":1350},"上下文聚焦：",{"type":27,"tag":731,"props":1352,"children":1354},{"className":1353},[],[1355],{"type":33,"value":1134},{"type":27,"tag":46,"props":1357,"children":1358},{},[],{"type":27,"tag":28,"props":1360,"children":1362},{"id":1361},"必交付物-1最小回归任务清单10-条通用",[1363],{"type":33,"value":1364},"必交付物 1：最小回归任务清单（10 条，通用）",{"type":27,"tag":907,"props":1366,"children":1367},{},[1368],{"type":27,"tag":35,"props":1369,"children":1370},{},[1371],{"type":33,"value":1372},"这份清单的意义：让每次 AI 改动都能“被验证”。否则你只是把不可控变成了更快的不可控。",{"type":27,"tag":311,"props":1374,"children":1375},{},[1376,1381,1386,1391,1396,1401,1406,1411,1416,1421],{"type":27,"tag":65,"props":1377,"children":1378},{},[1379],{"type":33,"value":1380},"关键路径能跑通（手动点击/请求一次）",{"type":27,"tag":65,"props":1382,"children":1383},{},[1384],{"type":33,"value":1385},"错误路径能触发（模拟一次失败输入）",{"type":27,"tag":65,"props":1387,"children":1388},{},[1389],{"type":33,"value":1390},"控制台无新增错误（至少关注 1 次真实操作）",{"type":27,"tag":65,"props":1392,"children":1393},{},[1394],{"type":33,"value":1395},"关键 UI 未错位（移动端/桌面端各看一眼）",{"type":27,"tag":65,"props":1397,"children":1398},{},[1399],{"type":33,"value":1400},"刷新后状态正确（尤其是表单/列表）",{"type":27,"tag":65,"props":1402,"children":1403},{},[1404],{"type":33,"value":1405},"路由跳转没断（从入口到目标页）",{"type":27,"tag":65,"props":1407,"children":1408},{},[1409],{"type":33,"value":1410},"相关接口未改变契约（字段名/类型）",{"type":27,"tag":65,"props":1412,"children":1413},{},[1414],{"type":33,"value":1415},"性能没有明显退化（首屏、交互卡顿）",{"type":27,"tag":65,"props":1417,"children":1418},{},[1419],{"type":33,"value":1420},"回滚方案可执行（知道回滚哪几个文件/commit）",{"type":27,"tag":65,"props":1422,"children":1423},{},[1424],{"type":33,"value":1425},"写下“这次改动解决了什么、风险是什么”（可贴 PR）",{"type":27,"tag":46,"props":1427,"children":1428},{},[],{"type":27,"tag":28,"props":1430,"children":1432},{"id":1431},"必交付物-2失败案例复盘真实会发生",[1433],{"type":33,"value":1434},"必交付物 2：失败案例复盘（真实会发生）",{"type":27,"tag":925,"props":1436,"children":1438},{"id":1437},"现象快捷键用得很熟但交付还是慢",[1439],{"type":33,"value":1440},"现象：快捷键用得很熟，但交付还是慢",{"type":27,"tag":35,"props":1442,"children":1443},{},[1444],{"type":33,"value":1445},"典型原因：你把 Cursor 当成“更聪明的搜索框”，不断对话，直到它给出你想要的答案。",{"type":27,"tag":35,"props":1447,"children":1448},{},[1449],{"type":33,"value":1450},"复现路径：",{"type":27,"tag":61,"props":1452,"children":1453},{},[1454,1459,1464,1469],{"type":27,"tag":65,"props":1455,"children":1456},{},[1457],{"type":33,"value":1458},"你直接说“把页面做得更好看、更高级”",{"type":27,"tag":65,"props":1460,"children":1461},{},[1462],{"type":33,"value":1463},"AI 开始大改样式、抽象组件、甚至引入新依赖",{"type":27,"tag":65,"props":1465,"children":1466},{},[1467],{"type":33,"value":1468},"你为了省事按了“接受建议”",{"type":27,"tag":65,"props":1470,"children":1471},{},[1472],{"type":33,"value":1473},"最后发现：设计没统一、移动端崩、甚至埋了性能问题",{"type":27,"tag":35,"props":1475,"children":1476},{},[1477,1479,1483,1485,1490],{"type":33,"value":1478},"根因：缺少",{"type":27,"tag":538,"props":1480,"children":1481},{},[1482],{"type":33,"value":662},{"type":33,"value":1484},"与",{"type":27,"tag":538,"props":1486,"children":1487},{},[1488],{"type":33,"value":1489},"验收",{"type":33,"value":1491},"。",{"type":27,"tag":35,"props":1493,"children":1494},{},[1495],{"type":33,"value":1496},"修复方式（可照抄）：",{"type":27,"tag":61,"props":1498,"children":1499},{},[1500,1505,1517],{"type":27,"tag":65,"props":1501,"children":1502},{},[1503],{"type":33,"value":1504},"把需求拆成 3 个可验证目标：例如“按钮样式统一”“首屏 CTA 更明显”“移动端间距不挤”",{"type":27,"tag":65,"props":1506,"children":1507},{},[1508,1510,1515],{"type":33,"value":1509},"每个目标只用 ",{"type":27,"tag":731,"props":1511,"children":1513},{"className":1512},[],[1514],{"type":33,"value":976},{"type":33,"value":1516}," 改一个局部",{"type":27,"tag":65,"props":1518,"children":1519},{},[1520],{"type":33,"value":1521},"每次接受建议前跑一遍“最小回归集”",{"type":27,"tag":46,"props":1523,"children":1524},{},[],{"type":27,"tag":28,"props":1526,"children":1528},{"id":1527},"faq高频问题",[1529],{"type":33,"value":1530},"FAQ（高频问题）",{"type":27,"tag":925,"props":1532,"children":1534},{"id":1533},"q1我应该先记快捷键还是先学工作流",[1535],{"type":33,"value":1536},"Q1：我应该先记快捷键还是先学工作流？",{"type":27,"tag":35,"props":1538,"children":1539},{},[1540],{"type":33,"value":1541},"先学工作流。快捷键只是把工作流的步骤变短。",{"type":27,"tag":925,"props":1543,"children":1545},{"id":1544},"q2为什么我一用多文件就容易翻车",[1546],{"type":33,"value":1547},"Q2：为什么我一用多文件就容易翻车？",{"type":27,"tag":35,"props":1549,"children":1550},{},[1551],{"type":33,"value":1552},"因为多文件意味着范围更大、依赖更多、验收更难。先锁定“文件清单 + 每步验收”，再让它动手。",{"type":27,"tag":925,"props":1554,"children":1556},{"id":1555},"q3有没有万能提示词",[1557],{"type":33,"value":1558},"Q3：有没有“万能提示词”？",{"type":27,"tag":35,"props":1560,"children":1561},{},[1562],{"type":33,"value":1563},"没有，但有“万能结构”：目标、范围、非目标、验收、输出格式。",{"type":27,"tag":46,"props":1565,"children":1566},{},[],{"type":27,"tag":28,"props":1568,"children":1570},{"id":1569},"延伸阅读建议按顺序",[1571],{"type":33,"value":1572},"延伸阅读（建议按顺序）",{"type":27,"tag":61,"props":1574,"children":1575},{},[1576,1583,1590,1597],{"type":27,"tag":65,"props":1577,"children":1578},{},[1579],{"type":27,"tag":439,"props":1580,"children":1581},{"href":572},[1582],{"type":33,"value":575},{"type":27,"tag":65,"props":1584,"children":1585},{},[1586],{"type":27,"tag":439,"props":1587,"children":1588},{"href":583},[1589],{"type":33,"value":586},{"type":27,"tag":65,"props":1591,"children":1592},{},[1593],{"type":27,"tag":439,"props":1594,"children":1595},{"href":594},[1596],{"type":33,"value":597},{"type":27,"tag":65,"props":1598,"children":1599},{},[1600,1602],{"type":33,"value":1601},"如果你更关心“网页制作落地”：看这篇 ",{"type":27,"tag":439,"props":1603,"children":1605},{"href":1604},"/topics/practical-tips/htmlpage-quick-landing-page",[1606],{"type":33,"value":1607},"3 分钟用 HTMLPAGE 做落地页",{"title":7,"searchDepth":464,"depth":464,"links":1609},[1610,1611,1612,1624,1625,1628,1633],{"id":603,"depth":467,"text":606},{"id":678,"depth":467,"text":681},{"id":920,"depth":467,"text":923,"children":1613},[1614,1615,1616,1617,1618,1619,1620,1621,1622,1623],{"id":927,"depth":464,"text":930},{"id":986,"depth":464,"text":989},{"id":1056,"depth":464,"text":1059},{"id":1112,"depth":464,"text":1115},{"id":1152,"depth":464,"text":1155},{"id":1191,"depth":464,"text":1194},{"id":1210,"depth":464,"text":1213},{"id":1252,"depth":464,"text":1255},{"id":1287,"depth":464,"text":1290},{"id":1304,"depth":464,"text":1307},{"id":1361,"depth":467,"text":1364},{"id":1431,"depth":467,"text":1434,"children":1626},[1627],{"id":1437,"depth":464,"text":1440},{"id":1527,"depth":467,"text":1530,"children":1629},[1630,1631,1632],{"id":1533,"depth":464,"text":1536},{"id":1544,"depth":464,"text":1547},{"id":1555,"depth":464,"text":1558},{"id":1569,"depth":467,"text":1572},"content:topics:ai:cursor-keyboard-shortcuts-cheatsheet.md","topics/ai/cursor-keyboard-shortcuts-cheatsheet.md","topics/ai/cursor-keyboard-shortcuts-cheatsheet",{"_path":1638,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":1639,"description":1640,"date":1641,"topic":5,"author":11,"tags":1642,"image":1646,"imageAlt":1647,"pexelsPhotoId":1648,"pexelsUrl":1649,"readingTime":1650,"body":1651,"_type":476,"_id":2584,"_source":478,"_file":2585,"_stem":2586,"_extension":481},"/topics/ai/cursor-vs-copilot-vscode-workflow","Cursor vs GitHub Copilot vs VS Code：怎么选、怎么搭配、怎么把风险关在笼子里","用“任务类型×风险×验收成本”的选择矩阵解释 Cursor/Copilot/VS Code 的差异，并给出一套可落地的协作工作流（范围闸门、最小回归集、回滚策略）。","2026-03-01",[489,1643,492,1644,1645],"GitHub Copilot","AI 编程","工作流","/images/topics/ai/cursor-vs-copilot-vscode-workflow.jpg","团队在电脑前进行协作讨论",1181371,"https://www.pexels.com/photo/man-wearing-blue-dress-shirt-1181371/",15,{"type":24,"children":1652,"toc":2562},[1653,1658,1663,1681,1686,1704,1707,1713,1718,1749,1754,1757,1763,1771,1975,1983,1996,1999,2005,2011,2024,2029,2042,2048,2053,2086,2092,2097,2115,2118,2124,2129,2135,2140,2173,2179,2192,2197,2210,2216,2228,2234,2239,2252,2257,2260,2266,2271,2392,2395,2401,2411,2420,2438,2447,2455,2464,2482,2485,2491,2497,2502,2508,2513,2516,2521],{"type":27,"tag":35,"props":1654,"children":1655},{},[1656],{"type":33,"value":1657},"“Cursor 和 Copilot 到底有什么区别？”",{"type":27,"tag":35,"props":1659,"children":1660},{},[1661],{"type":33,"value":1662},"这个问题问得越早越好，因为你一旦把工具选错，后面所有痛苦都不是“提示词不够好”，而是：",{"type":27,"tag":61,"props":1664,"children":1665},{},[1666,1671,1676],{"type":27,"tag":65,"props":1667,"children":1668},{},[1669],{"type":33,"value":1670},"改动不可控（范围漂移、改错文件）",{"type":27,"tag":65,"props":1672,"children":1673},{},[1674],{"type":33,"value":1675},"验收成本爆炸（不知道要测什么）",{"type":27,"tag":65,"props":1677,"children":1678},{},[1679],{"type":33,"value":1680},"团队协作崩盘（没有闸门、没有回滚）",{"type":27,"tag":35,"props":1682,"children":1683},{},[1684],{"type":33,"value":1685},"这篇文章用一张选择矩阵 + 一套可执行工作流，帮你做到两件事：",{"type":27,"tag":311,"props":1687,"children":1688},{},[1689,1694],{"type":27,"tag":65,"props":1690,"children":1691},{},[1692],{"type":33,"value":1693},"知道什么时候用 Cursor、什么时候用 Copilot、什么时候“纯 VS Code 更快”",{"type":27,"tag":65,"props":1695,"children":1696},{},[1697,1699],{"type":33,"value":1698},"就算用 AI，也能把风险关在笼子里：",{"type":27,"tag":538,"props":1700,"children":1701},{},[1702],{"type":33,"value":1703},"可审查、可验证、可回滚",{"type":27,"tag":46,"props":1705,"children":1706},{},[],{"type":27,"tag":28,"props":1708,"children":1710},{"id":1709},"结论先说三者不是互斥而是分工",[1711],{"type":33,"value":1712},"结论先说：三者不是互斥，而是分工",{"type":27,"tag":35,"props":1714,"children":1715},{},[1716],{"type":33,"value":1717},"你可以把它们看成三层能力：",{"type":27,"tag":61,"props":1719,"children":1720},{},[1721,1730,1740],{"type":27,"tag":65,"props":1722,"children":1723},{},[1724,1728],{"type":27,"tag":538,"props":1725,"children":1726},{},[1727],{"type":33,"value":492},{"type":33,"value":1729},"：编辑器与生态（调试、插件、任务、终端、语言服务）",{"type":27,"tag":65,"props":1731,"children":1732},{},[1733,1738],{"type":27,"tag":538,"props":1734,"children":1735},{},[1736],{"type":33,"value":1737},"Copilot",{"type":33,"value":1739},"：代码补全与局部建议（“我正在写这一行/这一段”）",{"type":27,"tag":65,"props":1741,"children":1742},{},[1743,1747],{"type":27,"tag":538,"props":1744,"children":1745},{},[1746],{"type":33,"value":489},{"type":33,"value":1748},"：以项目为单位的 AI 协作（对话、索引、多文件编辑、规则）",{"type":27,"tag":35,"props":1750,"children":1751},{},[1752],{"type":33,"value":1753},"最常见的误区是：把“局部补全能力”当作“能做架构与多文件落地”。",{"type":27,"tag":46,"props":1755,"children":1756},{},[],{"type":27,"tag":28,"props":1758,"children":1760},{"id":1759},"选择矩阵按任务类型选工具不是按偏好",[1761],{"type":33,"value":1762},"选择矩阵：按任务类型选工具（不是按偏好）",{"type":27,"tag":907,"props":1764,"children":1765},{},[1766],{"type":27,"tag":35,"props":1767,"children":1768},{},[1769],{"type":33,"value":1770},"你只要把自己的任务放进表格，就能得到推荐路径。",{"type":27,"tag":118,"props":1772,"children":1773},{},[1774,1806],{"type":27,"tag":122,"props":1775,"children":1776},{},[1777],{"type":27,"tag":126,"props":1778,"children":1779},{},[1780,1785,1791,1796,1801],{"type":27,"tag":130,"props":1781,"children":1782},{},[1783],{"type":33,"value":1784},"任务类型",{"type":27,"tag":130,"props":1786,"children":1788},{"align":1787},"right",[1789],{"type":33,"value":1790},"风险",{"type":27,"tag":130,"props":1792,"children":1793},{"align":1787},[1794],{"type":33,"value":1795},"验收成本",{"type":27,"tag":130,"props":1797,"children":1798},{},[1799],{"type":33,"value":1800},"更推荐",{"type":27,"tag":130,"props":1802,"children":1803},{},[1804],{"type":33,"value":1805},"为什么",{"type":27,"tag":146,"props":1807,"children":1808},{},[1809,1836,1869,1895,1922,1949],{"type":27,"tag":126,"props":1810,"children":1811},{},[1812,1817,1822,1826,1831],{"type":27,"tag":153,"props":1813,"children":1814},{},[1815],{"type":33,"value":1816},"写一段代码/补一个 if",{"type":27,"tag":153,"props":1818,"children":1819},{"align":1787},[1820],{"type":33,"value":1821},"低",{"type":27,"tag":153,"props":1823,"children":1824},{"align":1787},[1825],{"type":33,"value":1821},{"type":27,"tag":153,"props":1827,"children":1828},{},[1829],{"type":33,"value":1830},"Copilot / Cursor 内联编辑",{"type":27,"tag":153,"props":1832,"children":1833},{},[1834],{"type":33,"value":1835},"局部建议足够，成本最低",{"type":27,"tag":126,"props":1837,"children":1838},{},[1839,1844,1849,1853,1864],{"type":27,"tag":153,"props":1840,"children":1841},{},[1842],{"type":33,"value":1843},"重构一个函数",{"type":27,"tag":153,"props":1845,"children":1846},{"align":1787},[1847],{"type":33,"value":1848},"中",{"type":27,"tag":153,"props":1850,"children":1851},{"align":1787},[1852],{"type":33,"value":1848},{"type":27,"tag":153,"props":1854,"children":1855},{},[1856,1858],{"type":33,"value":1857},"Cursor ",{"type":27,"tag":731,"props":1859,"children":1861},{"className":1860},[],[1862],{"type":33,"value":1863},"内联编辑",{"type":27,"tag":153,"props":1865,"children":1866},{},[1867],{"type":33,"value":1868},"需要解释、需要约束输出",{"type":27,"tag":126,"props":1870,"children":1871},{},[1872,1877,1881,1885,1890],{"type":27,"tag":153,"props":1873,"children":1874},{},[1875],{"type":33,"value":1876},"改一个组件 + 样式",{"type":27,"tag":153,"props":1878,"children":1879},{"align":1787},[1880],{"type":33,"value":1848},{"type":27,"tag":153,"props":1882,"children":1883},{"align":1787},[1884],{"type":33,"value":1848},{"type":27,"tag":153,"props":1886,"children":1887},{},[1888],{"type":33,"value":1889},"Cursor（小范围多文件）",{"type":27,"tag":153,"props":1891,"children":1892},{},[1893],{"type":33,"value":1894},"需要同时改模板与样式",{"type":27,"tag":126,"props":1896,"children":1897},{},[1898,1903,1908,1912,1917],{"type":27,"tag":153,"props":1899,"children":1900},{},[1901],{"type":33,"value":1902},"改 3~5 个文件（组件+api+测试）",{"type":27,"tag":153,"props":1904,"children":1905},{"align":1787},[1906],{"type":33,"value":1907},"高",{"type":27,"tag":153,"props":1909,"children":1910},{"align":1787},[1911],{"type":33,"value":1907},{"type":27,"tag":153,"props":1913,"children":1914},{},[1915],{"type":33,"value":1916},"Cursor Composer + 闸门",{"type":27,"tag":153,"props":1918,"children":1919},{},[1920],{"type":33,"value":1921},"需要计划、验收、回滚",{"type":27,"tag":126,"props":1923,"children":1924},{},[1925,1930,1935,1939,1944],{"type":27,"tag":153,"props":1926,"children":1927},{},[1928],{"type":33,"value":1929},"重写一段架构/引入新依赖",{"type":27,"tag":153,"props":1931,"children":1932},{"align":1787},[1933],{"type":33,"value":1934},"很高",{"type":27,"tag":153,"props":1936,"children":1937},{"align":1787},[1938],{"type":33,"value":1934},{"type":27,"tag":153,"props":1940,"children":1941},{},[1942],{"type":33,"value":1943},"先人脑设计 + VS Code 实现",{"type":27,"tag":153,"props":1945,"children":1946},{},[1947],{"type":33,"value":1948},"AI 易发散，最好先设计再执行",{"type":27,"tag":126,"props":1950,"children":1951},{},[1952,1957,1961,1965,1970],{"type":27,"tag":153,"props":1953,"children":1954},{},[1955],{"type":33,"value":1956},"排查线上问题/性能抖动",{"type":27,"tag":153,"props":1958,"children":1959},{"align":1787},[1960],{"type":33,"value":1907},{"type":27,"tag":153,"props":1962,"children":1963},{"align":1787},[1964],{"type":33,"value":1934},{"type":27,"tag":153,"props":1966,"children":1967},{},[1968],{"type":33,"value":1969},"VS Code + 工具链优先，AI 辅助归纳",{"type":27,"tag":153,"props":1971,"children":1972},{},[1973],{"type":33,"value":1974},"需要证据，不要“猜”",{"type":27,"tag":35,"props":1976,"children":1977},{},[1978],{"type":27,"tag":538,"props":1979,"children":1980},{},[1981],{"type":33,"value":1982},"一句话规则：",{"type":27,"tag":61,"props":1984,"children":1985},{},[1986,1991],{"type":27,"tag":65,"props":1987,"children":1988},{},[1989],{"type":33,"value":1990},"当你的改动可以用“10 条最小回归集”覆盖时，用 Cursor。",{"type":27,"tag":65,"props":1992,"children":1993},{},[1994],{"type":33,"value":1995},"当你的改动无法验证时，先别让 AI 动手。",{"type":27,"tag":46,"props":1997,"children":1998},{},[],{"type":27,"tag":28,"props":2000,"children":2002},{"id":2001},"差异拆解到底差在哪里",[2003],{"type":33,"value":2004},"差异拆解：到底差在哪里？",{"type":27,"tag":925,"props":2006,"children":2008},{"id":2007},"_1-上下文来源补全-vs-项目索引",[2009],{"type":33,"value":2010},"1) 上下文来源：补全 vs 项目索引",{"type":27,"tag":61,"props":2012,"children":2013},{},[2014,2019],{"type":27,"tag":65,"props":2015,"children":2016},{},[2017],{"type":33,"value":2018},"Copilot 更擅长：你正在写的这几行、当前文件的局部上下文",{"type":27,"tag":65,"props":2020,"children":2021},{},[2022],{"type":33,"value":2023},"Cursor 更擅长：项目级索引 + 多文件关联理解",{"type":27,"tag":35,"props":2025,"children":2026},{},[2027],{"type":33,"value":2028},"因此：",{"type":27,"tag":61,"props":2030,"children":2031},{},[2032,2037],{"type":27,"tag":65,"props":2033,"children":2034},{},[2035],{"type":33,"value":2036},"写代码片段：Copilot 速度更快",{"type":27,"tag":65,"props":2038,"children":2039},{},[2040],{"type":33,"value":2041},"改一坨工程：Cursor 更有胜算（但更需要闸门）",{"type":27,"tag":925,"props":2043,"children":2045},{"id":2044},"_2-交互方式你能不能控制范围",[2046],{"type":33,"value":2047},"2) 交互方式：你能不能控制范围",{"type":27,"tag":35,"props":2049,"children":2050},{},[2051],{"type":33,"value":2052},"范围控制的三个层级：",{"type":27,"tag":311,"props":2054,"children":2055},{},[2056,2066,2076],{"type":27,"tag":65,"props":2057,"children":2058},{},[2059,2061],{"type":33,"value":2060},"内联编辑（选中一段）→ ",{"type":27,"tag":538,"props":2062,"children":2063},{},[2064],{"type":33,"value":2065},"最强范围控制",{"type":27,"tag":65,"props":2067,"children":2068},{},[2069,2071],{"type":33,"value":2070},"Composer 多文件（先列文件清单）→ ",{"type":27,"tag":538,"props":2072,"children":2073},{},[2074],{"type":33,"value":2075},"可控但要闸门",{"type":27,"tag":65,"props":2077,"children":2078},{},[2079,2081],{"type":33,"value":2080},"大对话（泛目标）→ ",{"type":27,"tag":538,"props":2082,"children":2083},{},[2084],{"type":33,"value":2085},"最容易跑偏",{"type":27,"tag":925,"props":2087,"children":2089},{"id":2088},"_3-输出形态建议-vs-可审查的变更",[2090],{"type":33,"value":2091},"3) 输出形态：建议 vs 可审查的变更",{"type":27,"tag":35,"props":2093,"children":2094},{},[2095],{"type":33,"value":2096},"最好的 AI 输出不是“给我一段代码”，而是：",{"type":27,"tag":61,"props":2098,"children":2099},{},[2100,2105,2110],{"type":27,"tag":65,"props":2101,"children":2102},{},[2103],{"type":33,"value":2104},"改动摘要（做了什么）",{"type":27,"tag":65,"props":2106,"children":2107},{},[2108],{"type":33,"value":2109},"diff 级别的可审查变更",{"type":27,"tag":65,"props":2111,"children":2112},{},[2113],{"type":33,"value":2114},"验收步骤与回滚方案",{"type":27,"tag":46,"props":2116,"children":2117},{},[],{"type":27,"tag":28,"props":2119,"children":2121},{"id":2120},"一套可落地的团队工作流把风险关住",[2122],{"type":33,"value":2123},"一套可落地的团队工作流（把风险关住）",{"type":27,"tag":35,"props":2125,"children":2126},{},[2127],{"type":33,"value":2128},"下面这套流程，你可以直接写进团队规范：",{"type":27,"tag":925,"props":2130,"children":2132},{"id":2131},"step-1先写任务单geo-友好结构",[2133],{"type":33,"value":2134},"Step 1：先写任务单（GEO 友好结构）",{"type":27,"tag":35,"props":2136,"children":2137},{},[2138],{"type":33,"value":2139},"模板：",{"type":27,"tag":61,"props":2141,"children":2142},{},[2143,2148,2153,2158,2163,2168],{"type":27,"tag":65,"props":2144,"children":2145},{},[2146],{"type":33,"value":2147},"目标：……",{"type":27,"tag":65,"props":2149,"children":2150},{},[2151],{"type":33,"value":2152},"背景：……",{"type":27,"tag":65,"props":2154,"children":2155},{},[2156],{"type":33,"value":2157},"范围：只改这些文件/模块：……",{"type":27,"tag":65,"props":2159,"children":2160},{},[2161],{"type":33,"value":2162},"非目标：不做哪些事情：……",{"type":27,"tag":65,"props":2164,"children":2165},{},[2166],{"type":33,"value":2167},"验收：如何判断完成（可测试/可观察）：……",{"type":27,"tag":65,"props":2169,"children":2170},{},[2171],{"type":33,"value":2172},"回滚：如果失败怎么撤回：……",{"type":27,"tag":925,"props":2174,"children":2176},{"id":2175},"step-2用范围闸门限制-ai",[2177],{"type":33,"value":2178},"Step 2：用“范围闸门”限制 AI",{"type":27,"tag":61,"props":2180,"children":2181},{},[2182,2187],{"type":27,"tag":65,"props":2183,"children":2184},{},[2185],{"type":33,"value":2186},"单文件改动：优先 Cursor 内联编辑",{"type":27,"tag":65,"props":2188,"children":2189},{},[2190],{"type":33,"value":2191},"多文件改动：必须先让 AI 输出“文件清单（≤5）+ 每步验收”",{"type":27,"tag":35,"props":2193,"children":2194},{},[2195],{"type":33,"value":2196},"如果 AI 输出的文件清单超过 5 个：",{"type":27,"tag":61,"props":2198,"children":2199},{},[2200,2205],{"type":27,"tag":65,"props":2201,"children":2202},{},[2203],{"type":33,"value":2204},"不是它太强，是任务太大",{"type":27,"tag":65,"props":2206,"children":2207},{},[2208],{"type":33,"value":2209},"你需要拆任务，而不是继续推进",{"type":27,"tag":925,"props":2211,"children":2213},{"id":2212},"step-3最小回归集10-条",[2214],{"type":33,"value":2215},"Step 3：最小回归集（10 条）",{"type":27,"tag":35,"props":2217,"children":2218},{},[2219,2221,2226],{"type":33,"value":2220},"每次接受改动前必须跑（可参考：",{"type":27,"tag":439,"props":2222,"children":2223},{"href":484},[2224],{"type":33,"value":2225},"Cursor 快捷键速查表",{"type":33,"value":2227}," 里的清单）。",{"type":27,"tag":925,"props":2229,"children":2231},{"id":2230},"step-4回滚策略不用等事故才想",[2232],{"type":33,"value":2233},"Step 4：回滚策略（不用等事故才想）",{"type":27,"tag":35,"props":2235,"children":2236},{},[2237],{"type":33,"value":2238},"回滚最常见的两条路：",{"type":27,"tag":61,"props":2240,"children":2241},{},[2242,2247],{"type":27,"tag":65,"props":2243,"children":2244},{},[2245],{"type":33,"value":2246},"git 回滚 commit",{"type":27,"tag":65,"props":2248,"children":2249},{},[2250],{"type":33,"value":2251},"对关键文件保留前版本（至少能快速恢复）",{"type":27,"tag":35,"props":2253,"children":2254},{},[2255],{"type":33,"value":2256},"你需要做到：任何一轮 AI 改动都能在 5 分钟内撤回。",{"type":27,"tag":46,"props":2258,"children":2259},{},[],{"type":27,"tag":28,"props":2261,"children":2263},{"id":2262},"必交付物对比矩阵可复制",[2264],{"type":33,"value":2265},"必交付物：对比矩阵（可复制）",{"type":27,"tag":35,"props":2267,"children":2268},{},[2269],{"type":33,"value":2270},"下面这张表可以直接贴到你的团队 wiki：",{"type":27,"tag":118,"props":2272,"children":2273},{},[2274,2297],{"type":27,"tag":122,"props":2275,"children":2276},{},[2277],{"type":27,"tag":126,"props":2278,"children":2279},{},[2280,2285,2289,2293],{"type":27,"tag":130,"props":2281,"children":2282},{},[2283],{"type":33,"value":2284},"维度",{"type":27,"tag":130,"props":2286,"children":2287},{},[2288],{"type":33,"value":492},{"type":27,"tag":130,"props":2290,"children":2291},{},[2292],{"type":33,"value":1737},{"type":27,"tag":130,"props":2294,"children":2295},{},[2296],{"type":33,"value":489},{"type":27,"tag":146,"props":2298,"children":2299},{},[2300,2323,2346,2369],{"type":27,"tag":126,"props":2301,"children":2302},{},[2303,2308,2313,2318],{"type":27,"tag":153,"props":2304,"children":2305},{},[2306],{"type":33,"value":2307},"强项",{"type":27,"tag":153,"props":2309,"children":2310},{},[2311],{"type":33,"value":2312},"工具链、调试、生态",{"type":27,"tag":153,"props":2314,"children":2315},{},[2316],{"type":33,"value":2317},"补全与局部建议",{"type":27,"tag":153,"props":2319,"children":2320},{},[2321],{"type":33,"value":2322},"项目上下文、多文件落地",{"type":27,"tag":126,"props":2324,"children":2325},{},[2326,2331,2336,2341],{"type":27,"tag":153,"props":2327,"children":2328},{},[2329],{"type":33,"value":2330},"适合任务",{"type":27,"tag":153,"props":2332,"children":2333},{},[2334],{"type":33,"value":2335},"排查、调试、验证",{"type":27,"tag":153,"props":2337,"children":2338},{},[2339],{"type":33,"value":2340},"写一段、补一段",{"type":27,"tag":153,"props":2342,"children":2343},{},[2344],{"type":33,"value":2345},"改一段、改一组文件",{"type":27,"tag":126,"props":2347,"children":2348},{},[2349,2354,2359,2364],{"type":27,"tag":153,"props":2350,"children":2351},{},[2352],{"type":33,"value":2353},"最大风险",{"type":27,"tag":153,"props":2355,"children":2356},{},[2357],{"type":33,"value":2358},"无",{"type":27,"tag":153,"props":2360,"children":2361},{},[2362],{"type":33,"value":2363},"过度依赖建议",{"type":27,"tag":153,"props":2365,"children":2366},{},[2367],{"type":33,"value":2368},"范围漂移、多文件回归",{"type":27,"tag":126,"props":2370,"children":2371},{},[2372,2377,2382,2387],{"type":27,"tag":153,"props":2373,"children":2374},{},[2375],{"type":33,"value":2376},"必须搭配",{"type":27,"tag":153,"props":2378,"children":2379},{},[2380],{"type":33,"value":2381},"规范与检查",{"type":27,"tag":153,"props":2383,"children":2384},{},[2385],{"type":33,"value":2386},"代码评审",{"type":27,"tag":153,"props":2388,"children":2389},{},[2390],{"type":33,"value":2391},"闸门 + 最小回归集",{"type":27,"tag":46,"props":2393,"children":2394},{},[],{"type":27,"tag":28,"props":2396,"children":2398},{"id":2397},"失败案例多文件看似成功实际埋雷",[2399],{"type":33,"value":2400},"失败案例：多文件“看似成功”，实际埋雷",{"type":27,"tag":35,"props":2402,"children":2403},{},[2404,2409],{"type":27,"tag":538,"props":2405,"children":2406},{},[2407],{"type":33,"value":2408},"现象",{"type":33,"value":2410},"：AI 说“我已经把所有地方都改了”，你也接受了，结果上线后 404 或样式错位。",{"type":27,"tag":35,"props":2412,"children":2413},{},[2414,2419],{"type":27,"tag":538,"props":2415,"children":2416},{},[2417],{"type":33,"value":2418},"复现条件",{"type":33,"value":1231},{"type":27,"tag":61,"props":2421,"children":2422},{},[2423,2428,2433],{"type":27,"tag":65,"props":2424,"children":2425},{},[2426],{"type":33,"value":2427},"你给了一个大目标（例如“把所有按钮统一成主题色”）",{"type":27,"tag":65,"props":2429,"children":2430},{},[2431],{"type":33,"value":2432},"它改了组件、样式、甚至主题配置",{"type":27,"tag":65,"props":2434,"children":2435},{},[2436],{"type":33,"value":2437},"你没有按页面模块走一遍，直接合并",{"type":27,"tag":35,"props":2439,"children":2440},{},[2441,2446],{"type":27,"tag":538,"props":2442,"children":2443},{},[2444],{"type":33,"value":2445},"根因",{"type":33,"value":1231},{"type":27,"tag":61,"props":2448,"children":2449},{},[2450],{"type":27,"tag":65,"props":2451,"children":2452},{},[2453],{"type":33,"value":2454},"改动范围大，但验收仍按“小改动”的方式做（只看一处）",{"type":27,"tag":35,"props":2456,"children":2457},{},[2458,2463],{"type":27,"tag":538,"props":2459,"children":2460},{},[2461],{"type":33,"value":2462},"修复",{"type":33,"value":1231},{"type":27,"tag":61,"props":2465,"children":2466},{},[2467,2472,2477],{"type":27,"tag":65,"props":2468,"children":2469},{},[2470],{"type":33,"value":2471},"强制把任务拆成“模块级目标”：Hero、Feature、Pricing、Form",{"type":27,"tag":65,"props":2473,"children":2474},{},[2475],{"type":33,"value":2476},"每个模块改完就验收一次",{"type":27,"tag":65,"props":2478,"children":2479},{},[2480],{"type":33,"value":2481},"验收通过再进入下一个模块",{"type":27,"tag":46,"props":2483,"children":2484},{},[],{"type":27,"tag":28,"props":2486,"children":2488},{"id":2487},"faq",[2489],{"type":33,"value":2490},"FAQ",{"type":27,"tag":925,"props":2492,"children":2494},{"id":2493},"q1我已经用了-cursor为什么还要用-copilot",[2495],{"type":33,"value":2496},"Q1：我已经用了 Cursor，为什么还要用 Copilot？",{"type":27,"tag":35,"props":2498,"children":2499},{},[2500],{"type":33,"value":2501},"因为“补全”这种高频低风险任务，Copilot 的交互成本更低；Cursor 更适合需要解释与约束的改动。",{"type":27,"tag":925,"props":2503,"children":2505},{"id":2504},"q2什么时候应该完全不用-ai",[2506],{"type":33,"value":2507},"Q2：什么时候应该完全不用 AI？",{"type":27,"tag":35,"props":2509,"children":2510},{},[2511],{"type":33,"value":2512},"当你无法定义验收标准时。比如“更高级”“更好看”这种目标，先做信息结构与设计规则，再让 AI 帮你落地局部。",{"type":27,"tag":46,"props":2514,"children":2515},{},[],{"type":27,"tag":28,"props":2517,"children":2519},{"id":2518},"延伸阅读",[2520],{"type":33,"value":2518},{"type":27,"tag":61,"props":2522,"children":2523},{},[2524,2533,2542,2551],{"type":27,"tag":65,"props":2525,"children":2526},{},[2527,2529],{"type":33,"value":2528},"Cursor 入门：",{"type":27,"tag":439,"props":2530,"children":2531},{"href":572},[2532],{"type":33,"value":575},{"type":27,"tag":65,"props":2534,"children":2535},{},[2536,2538],{"type":33,"value":2537},"Cursor 进阶：",{"type":27,"tag":439,"props":2539,"children":2540},{"href":583},[2541],{"type":33,"value":586},{"type":27,"tag":65,"props":2543,"children":2544},{},[2545,2547],{"type":33,"value":2546},"规则配置：",{"type":27,"tag":439,"props":2548,"children":2549},{"href":594},[2550],{"type":33,"value":597},{"type":27,"tag":65,"props":2552,"children":2553},{},[2554,2556],{"type":33,"value":2555},"Copilot 实战：",{"type":27,"tag":439,"props":2557,"children":2559},{"href":2558},"/topics/ai/github-copilot-tips",[2560],{"type":33,"value":2561},"GitHub Copilot 实用技巧",{"title":7,"searchDepth":464,"depth":464,"links":2563},[2564,2565,2566,2571,2577,2578,2579,2583],{"id":1709,"depth":467,"text":1712},{"id":1759,"depth":467,"text":1762},{"id":2001,"depth":467,"text":2004,"children":2567},[2568,2569,2570],{"id":2007,"depth":464,"text":2010},{"id":2044,"depth":464,"text":2047},{"id":2088,"depth":464,"text":2091},{"id":2120,"depth":467,"text":2123,"children":2572},[2573,2574,2575,2576],{"id":2131,"depth":464,"text":2134},{"id":2175,"depth":464,"text":2178},{"id":2212,"depth":464,"text":2215},{"id":2230,"depth":464,"text":2233},{"id":2262,"depth":467,"text":2265},{"id":2397,"depth":467,"text":2400},{"id":2487,"depth":467,"text":2490,"children":2580},[2581,2582],{"id":2493,"depth":464,"text":2496},{"id":2504,"depth":464,"text":2507},{"id":2518,"depth":467,"text":2518},"content:topics:ai:cursor-vs-copilot-vscode-workflow.md","topics/ai/cursor-vs-copilot-vscode-workflow.md","topics/ai/cursor-vs-copilot-vscode-workflow",{"_path":2588,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":2589,"description":2590,"date":2591,"topic":5,"author":11,"tags":2592,"image":2597,"featured":2598,"readingTime":1650,"body":2599,"_type":476,"_id":3248,"_source":478,"_file":3249,"_stem":3250,"_extension":481},"/topics/ai/ai-debugging-troubleshooting-guide","AI 辅助调试与问题排查：让 AI 成为你的调试搭档","深入探讨如何利用 AI 工具提升调试效率，包括错误信息分析、日志解读、性能问题定位、复杂 bug 排查等实战场景，构建 AI 驱动的调试工作流。","2026-01-18",[2593,2594,2595,493,2596],"AI 调试","问题排查","Debug","错误处理","/images/topics/ai/ai-debugging-guide.jpg",true,{"type":24,"children":2600,"toc":3219},[2601,2607,2613,2618,2623,2628,2634,2640,2645,2653,2681,2689,2712,2718,2729,2738,2746,2754,2787,2795,2825,2838,2846,2851,2859,2867,2878,2884,2892,2903,2911,2920,2926,2932,2937,2946,2952,2957,2966,2972,2978,2987,2993,3002,3008,3019,3025,3031,3040,3046,3055,3061,3067,3075,3081,3090,3098,3106,3109,3115,3120,3139,3151,3154,3160,3165,3174,3179,3182,3188,3193,3211],{"type":27,"tag":28,"props":2602,"children":2604},{"id":2603},"ai-辅助调试与问题排查",[2605],{"type":33,"value":2606},"AI 辅助调试与问题排查",{"type":27,"tag":28,"props":2608,"children":2610},{"id":2609},"引言调试的痛与-ai-的解药",[2611],{"type":33,"value":2612},"引言：调试的痛与 AI 的解药",{"type":27,"tag":35,"props":2614,"children":2615},{},[2616],{"type":33,"value":2617},"调试是每个程序员的日常，也是最消耗时间和精力的工作之一。我们都有过这样的经历：盯着一个莫名其妙的错误信息，翻遍 Stack Overflow，尝试各种方案，几个小时后才发现是一个愚蠢的拼写错误。",{"type":27,"tag":35,"props":2619,"children":2620},{},[2621],{"type":33,"value":2622},"AI 工具的出现，正在改变调试的方式。不是替代你的思考，而是加速你的分析过程——帮你快速理解错误、缩小排查范围、验证假设。",{"type":27,"tag":35,"props":2624,"children":2625},{},[2626],{"type":33,"value":2627},"这篇文章分享我在实际项目中使用 AI 辅助调试的经验和方法论。",{"type":27,"tag":28,"props":2629,"children":2631},{"id":2630},"第一部分建立-ai-调试的思维模型",[2632],{"type":33,"value":2633},"第一部分：建立 AI 调试的思维模型",{"type":27,"tag":925,"props":2635,"children":2637},{"id":2636},"_11-ai-在调试中的角色",[2638],{"type":33,"value":2639},"1.1 AI 在调试中的角色",{"type":27,"tag":35,"props":2641,"children":2642},{},[2643],{"type":33,"value":2644},"把 AI 想象成一个经验丰富但不了解你项目的高级工程师。它：",{"type":27,"tag":35,"props":2646,"children":2647},{},[2648],{"type":27,"tag":538,"props":2649,"children":2650},{},[2651],{"type":33,"value":2652},"擅长的事情：",{"type":27,"tag":61,"props":2654,"children":2655},{},[2656,2661,2666,2671,2676],{"type":27,"tag":65,"props":2657,"children":2658},{},[2659],{"type":33,"value":2660},"解读错误信息的含义",{"type":27,"tag":65,"props":2662,"children":2663},{},[2664],{"type":33,"value":2665},"提供可能的原因列表",{"type":27,"tag":65,"props":2667,"children":2668},{},[2669],{"type":33,"value":2670},"给出排查方向建议",{"type":27,"tag":65,"props":2672,"children":2673},{},[2674],{"type":33,"value":2675},"解释复杂的技术概念",{"type":27,"tag":65,"props":2677,"children":2678},{},[2679],{"type":33,"value":2680},"生成调试代码片段",{"type":27,"tag":35,"props":2682,"children":2683},{},[2684],{"type":27,"tag":538,"props":2685,"children":2686},{},[2687],{"type":33,"value":2688},"不擅长的事情：",{"type":27,"tag":61,"props":2690,"children":2691},{},[2692,2697,2702,2707],{"type":27,"tag":65,"props":2693,"children":2694},{},[2695],{"type":33,"value":2696},"了解你的业务逻辑",{"type":27,"tag":65,"props":2698,"children":2699},{},[2700],{"type":33,"value":2701},"知道你的代码历史",{"type":27,"tag":65,"props":2703,"children":2704},{},[2705],{"type":33,"value":2706},"理解项目特定的约定",{"type":27,"tag":65,"props":2708,"children":2709},{},[2710],{"type":33,"value":2711},"做出架构级判断",{"type":27,"tag":925,"props":2713,"children":2715},{"id":2714},"_12-有效提问的结构",[2716],{"type":33,"value":2717},"1.2 有效提问的结构",{"type":27,"tag":2719,"props":2720,"children":2724},"pre",{"code":2721,"language":476,"meta":7,"className":2722},"## 高效的调试提问模板\n\n**问题描述**\n[简洁描述遇到的问题]\n\n**错误信息**\n",[2723],"language-markdown",[2725],{"type":27,"tag":731,"props":2726,"children":2727},{"__ignoreMap":7},[2728],{"type":33,"value":2721},{"type":27,"tag":35,"props":2730,"children":2731},{},[2732],{"type":27,"tag":2733,"props":2734,"children":2735},"span",{},[2736],{"type":33,"value":2737},"完整的错误信息，不要截断",{"type":27,"tag":2719,"props":2739,"children":2741},{"code":2740},"\n**相关代码**\n```javascript\n[精简但完整的相关代码]\n",[2742],{"type":27,"tag":731,"props":2743,"children":2744},{"__ignoreMap":7},[2745],{"type":33,"value":2740},{"type":27,"tag":35,"props":2747,"children":2748},{},[2749],{"type":27,"tag":538,"props":2750,"children":2751},{},[2752],{"type":33,"value":2753},"环境信息",{"type":27,"tag":61,"props":2755,"children":2756},{},[2757,2767,2777],{"type":27,"tag":65,"props":2758,"children":2759},{},[2760,2762],{"type":33,"value":2761},"运行环境：",{"type":27,"tag":2733,"props":2763,"children":2764},{},[2765],{"type":33,"value":2766},"Node 版本/浏览器版本",{"type":27,"tag":65,"props":2768,"children":2769},{},[2770,2772],{"type":33,"value":2771},"框架版本：",{"type":27,"tag":2733,"props":2773,"children":2774},{},[2775],{"type":33,"value":2776},"相关框架版本",{"type":27,"tag":65,"props":2778,"children":2779},{},[2780,2782],{"type":33,"value":2781},"操作系统：",{"type":27,"tag":2733,"props":2783,"children":2784},{},[2785],{"type":33,"value":2786},"如果相关",{"type":27,"tag":35,"props":2788,"children":2789},{},[2790],{"type":27,"tag":538,"props":2791,"children":2792},{},[2793],{"type":33,"value":2794},"已尝试的方案",{"type":27,"tag":61,"props":2796,"children":2797},{},[2798,2812],{"type":27,"tag":65,"props":2799,"children":2800},{},[2801,2806,2807],{"type":27,"tag":2733,"props":2802,"children":2803},{},[2804],{"type":33,"value":2805},"方案1",{"type":33,"value":1231},{"type":27,"tag":2733,"props":2808,"children":2809},{},[2810],{"type":33,"value":2811},"结果",{"type":27,"tag":65,"props":2813,"children":2814},{},[2815,2820,2821],{"type":27,"tag":2733,"props":2816,"children":2817},{},[2818],{"type":33,"value":2819},"方案2",{"type":33,"value":1231},{"type":27,"tag":2733,"props":2822,"children":2823},{},[2824],{"type":33,"value":2811},{"type":27,"tag":35,"props":2826,"children":2827},{},[2828,2833],{"type":27,"tag":538,"props":2829,"children":2830},{},[2831],{"type":33,"value":2832},"期望的结果",{"type":27,"tag":2733,"props":2834,"children":2835},{},[2836],{"type":33,"value":2837},"描述期望的行为",{"type":27,"tag":2719,"props":2839,"children":2841},{"code":2840},"\n### 1.3 分级调试策略\n\n",[2842],{"type":27,"tag":731,"props":2843,"children":2844},{"__ignoreMap":7},[2845],{"type":33,"value":2840},{"type":27,"tag":35,"props":2847,"children":2848},{},[2849],{"type":33,"value":2850},"┌───────────────────────────────────────────────────────────┐\n│                    AI 辅助调试决策树                        │\n├───────────────────────────────────────────────────────────┤\n│                                                           │\n│  Level 1：简单错误（5分钟内解决）                           │\n│  ├── 语法错误、拼写错误                                    │\n│  ├── 方法：直接复制错误信息给 AI                           │\n│  └── 工具：Copilot Chat / ChatGPT                        │\n│                                                           │\n│  Level 2：中等复杂度（30分钟内解决）                        │\n│  ├── 类型错误、逻辑错误、API 使用错误                      │\n│  ├── 方法：提供错误信息 + 相关代码 + 上下文                 │\n│  └── 工具：Cursor Chat / Claude                          │\n│                                                           │\n│  Level 3：复杂问题（需要深入分析）                          │\n│  ├── 竞态条件、内存泄漏、性能问题                          │\n│  ├── 方法：详细描述场景 + 提供多个文件 + 讨论               │\n│  └── 工具：Cursor Composer / 专门的 AI 会话                │\n│                                                           │\n│  Level 4：架构级问题                                       │\n│  ├── 设计缺陷、技术债务                                    │\n│  ├── 方法：AI 辅助分析 + 人工判断                          │\n│  └── 工具：与团队讨论 + AI 作为顾问                        │\n│                                                           │\n└───────────────────────────────────────────────────────────┘",{"type":27,"tag":2719,"props":2852,"children":2854},{"code":2853},"\n## 第二部分：错误信息分析\n\n### 2.1 前端错误分析\n\n**场景 1：React 错误边界触发**\n\n```typescript\n// 错误信息：\n// Error: Hydration failed because the initial UI does not match \n// what was rendered on the server.\n\n// 提问方式：\n/**\n * 我在 Next.js 14 App Router 项目中遇到这个错误：\n * \n * Error: Hydration failed because the initial UI does not match \n * what was rendered on the server.\n * \n * 相关代码：\n */\nfunction UserStatus() {\n  const [isLoggedIn, setIsLoggedIn] = useState(false);\n  \n  useEffect(() => {\n    setIsLoggedIn(localStorage.getItem('token') !== null);\n  }, []);\n  \n  return \u003Cdiv>{isLoggedIn ? '已登录' : '未登录'}\u003C/div>;\n}\n\n// AI 会分析出：\n// 1. 服务端渲染时 localStorage 不可用，默认 false\n// 2. 客户端 hydration 时可能是 true\n// 3. 导致服务端和客户端渲染结果不一致\n\n// AI 建议的解决方案：\nfunction UserStatus() {\n  const [isLoggedIn, setIsLoggedIn] = useState\u003Cboolean | null>(null);\n  \n  useEffect(() => {\n    setIsLoggedIn(localStorage.getItem('token') !== null);\n  }, []);\n  \n  // 初始状态显示加载中，避免 hydration 不匹配\n  if (isLoggedIn === null) {\n    return \u003Cdiv>加载中...\u003C/div>;\n  }\n  \n  return \u003Cdiv>{isLoggedIn ? '已登录' : '未登录'}\u003C/div>;\n}\n",[2855],{"type":27,"tag":731,"props":2856,"children":2857},{"__ignoreMap":7},[2858],{"type":33,"value":2853},{"type":27,"tag":35,"props":2860,"children":2861},{},[2862],{"type":27,"tag":538,"props":2863,"children":2864},{},[2865],{"type":33,"value":2866},"场景 2：Vue 响应式警告",{"type":27,"tag":2719,"props":2868,"children":2873},{"code":2869,"language":2870,"meta":7,"className":2871},"// 警告信息：\n// [Vue warn]: Property \"xxx\" was accessed during render but is not \n// defined on instance.\n\n// 提问方式：\n/**\n * Vue 3 项目中出现这个警告：\n * [Vue warn]: Property \"userInfo\" was accessed during render \n * but is not defined on instance.\n * \n * 组件代码：\n */\n\u003Ctemplate>\n  \u003Cdiv>{{ userInfo.name }}\u003C/div>\n\u003C/template>\n\n\u003Cscript setup>\nconst { data: userInfo } = await useFetch('/api/user');\n\u003C/script>\n\n// AI 分析：\n// 1. useFetch 是异步的，初始渲染时 userInfo 可能是 undefined\n// 2. 直接访问 userInfo.name 会报错\n\n// AI 建议：\n\u003Ctemplate>\n  \u003Cdiv v-if=\"userInfo\">{{ userInfo.name }}\u003C/div>\n  \u003Cdiv v-else>加载中...\u003C/div>\n\u003C/template>\n\n\u003Cscript setup>\nconst { data: userInfo, pending } = await useFetch('/api/user');\n\u003C/script>\n","typescript",[2872],"language-typescript",[2874],{"type":27,"tag":731,"props":2875,"children":2876},{"__ignoreMap":7},[2877],{"type":33,"value":2869},{"type":27,"tag":925,"props":2879,"children":2881},{"id":2880},"_22-后端错误分析",[2882],{"type":33,"value":2883},"2.2 后端错误分析",{"type":27,"tag":35,"props":2885,"children":2886},{},[2887],{"type":27,"tag":538,"props":2888,"children":2889},{},[2890],{"type":33,"value":2891},"场景 1：Node.js 内存问题",{"type":27,"tag":2719,"props":2893,"children":2898},{"code":2894,"language":2895,"meta":7,"className":2896},"// 错误信息：\n// FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - \n// JavaScript heap out of memory\n\n// 提问方式（包含上下文）：\n/**\n * Node.js 服务运行几小时后崩溃，错误信息：\n * FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - \n * JavaScript heap out of memory\n * \n * 服务功能：处理 CSV 文件上传，每次约 100MB\n * \n * 处理代码：\n */\nasync function processCSV(filePath) {\n  const content = fs.readFileSync(filePath, 'utf-8');\n  const rows = content.split('\\n');\n  const results = [];\n  \n  for (const row of rows) {\n    const processed = await processRow(row);\n    results.push(processed);\n  }\n  \n  return results;\n}\n\n// AI 分析会指出：\n// 1. 一次性读取整个文件到内存\n// 2. 所有处理结果累积在 results 数组\n// 3. 建议使用流式处理\n\n// AI 提供的优化方案：\nconst { createReadStream } = require('fs');\nconst { createInterface } = require('readline');\n\nasync function processCSVStream(filePath, onRow) {\n  const fileStream = createReadStream(filePath);\n  const rl = createInterface({\n    input: fileStream,\n    crlfDelay: Infinity\n  });\n  \n  let count = 0;\n  for await (const line of rl) {\n    await onRow(line);\n    count++;\n    \n    // 每处理 1000 行，给 GC 机会运行\n    if (count % 1000 === 0) {\n      await new Promise(r => setImmediate(r));\n    }\n  }\n}\n","javascript",[2897],"language-javascript",[2899],{"type":27,"tag":731,"props":2900,"children":2901},{"__ignoreMap":7},[2902],{"type":33,"value":2894},{"type":27,"tag":35,"props":2904,"children":2905},{},[2906],{"type":27,"tag":538,"props":2907,"children":2908},{},[2909],{"type":33,"value":2910},"场景 2：数据库连接问题",{"type":27,"tag":2719,"props":2912,"children":2915},{"code":2913,"language":2870,"meta":7,"className":2914},"// 错误信息：\n// Error: Connection pool exhausted - \n// max connections (10) already in use\n\n// 提问方式：\n/**\n * PostgreSQL 连接池耗尽错误，高并发时出现：\n * Error: Connection pool exhausted\n * \n * 当前配置：\n * - max connections: 10\n * - 并发请求: 约 100/秒\n * \n * 数据库调用代码：\n */\nasync function getUserData(userId: string) {\n  const client = await pool.connect();\n  try {\n    const user = await client.query('SELECT * FROM users WHERE id = $1', [userId]);\n    const orders = await client.query('SELECT * FROM orders WHERE user_id = $1', [userId]);\n    const payments = await client.query('SELECT * FROM payments WHERE user_id = $1', [userId]);\n    return { user: user.rows[0], orders: orders.rows, payments: payments.rows };\n  } finally {\n    client.release();\n  }\n}\n\n// AI 会分析出多个可能原因并给出综合方案\n",[2872],[2916],{"type":27,"tag":731,"props":2917,"children":2918},{"__ignoreMap":7},[2919],{"type":33,"value":2913},{"type":27,"tag":28,"props":2921,"children":2923},{"id":2922},"第三部分日志分析与问题定位",[2924],{"type":33,"value":2925},"第三部分：日志分析与问题定位",{"type":27,"tag":925,"props":2927,"children":2929},{"id":2928},"_31-结构化日志分析",[2930],{"type":33,"value":2931},"3.1 结构化日志分析",{"type":27,"tag":35,"props":2933,"children":2934},{},[2935],{"type":33,"value":2936},"当面对大量日志时，让 AI 帮你快速定位问题：",{"type":27,"tag":2719,"props":2938,"children":2941},{"code":2939,"language":2895,"meta":7,"className":2940},"// 提问示例：\n/**\n * 分析以下日志，找出导致请求失败的原因：\n * \n * 日志片段：\n */\nconst logs = `\n2024-01-15 10:23:45.123 INFO  [req-abc123] 收到请求 POST /api/order\n2024-01-15 10:23:45.125 DEBUG [req-abc123] 用户认证通过 userId=u001\n2024-01-15 10:23:45.130 DEBUG [req-abc123] 开始库存检查 productId=p001\n2024-01-15 10:23:45.145 DEBUG [req-abc123] 库存检查通过 available=50\n2024-01-15 10:23:45.150 DEBUG [req-abc123] 开始创建订单\n2024-01-15 10:23:45.200 DEBUG [req-abc123] 数据库连接获取成功\n2024-01-15 10:23:45.250 ERROR [req-abc123] 订单创建失败 error=\"deadlock detected\"\n2024-01-15 10:23:45.251 WARN  [req-abc123] 事务回滚\n2024-01-15 10:23:45.255 INFO  [req-abc123] 响应 500 耗时 132ms\n`;\n\n// AI 分析结果会包括：\n// 1. 问题定位：数据库死锁\n// 2. 可能原因：并发订单创建导致锁竞争\n// 3. 排查建议：检查事务隔离级别、锁顺序\n",[2897],[2942],{"type":27,"tag":731,"props":2943,"children":2944},{"__ignoreMap":7},[2945],{"type":33,"value":2939},{"type":27,"tag":925,"props":2947,"children":2949},{"id":2948},"_32-创建调试日志",[2950],{"type":33,"value":2951},"3.2 创建调试日志",{"type":27,"tag":35,"props":2953,"children":2954},{},[2955],{"type":33,"value":2956},"让 AI 帮你生成调试用的日志代码：",{"type":27,"tag":2719,"props":2958,"children":2961},{"code":2959,"language":2870,"meta":7,"className":2960},"// 请求：\n// \"为这个函数添加详细的调试日志，包括入参、关键步骤、耗时和结果\"\n\n// 原代码：\nasync function processOrder(order: Order): Promise\u003COrderResult> {\n  const inventory = await checkInventory(order.items);\n  const payment = await processPayment(order.userId, order.total);\n  const result = await createOrder(order, payment.transactionId);\n  return result;\n}\n\n// AI 生成的带日志版本：\nasync function processOrder(order: Order): Promise\u003COrderResult> {\n  const requestId = generateRequestId();\n  const startTime = performance.now();\n  \n  logger.info({\n    requestId,\n    event: 'order_processing_start',\n    orderId: order.id,\n    userId: order.userId,\n    itemCount: order.items.length,\n    total: order.total\n  });\n  \n  try {\n    // 库存检查\n    const inventoryStart = performance.now();\n    const inventory = await checkInventory(order.items);\n    logger.debug({\n      requestId,\n      event: 'inventory_check_complete',\n      duration: performance.now() - inventoryStart,\n      available: inventory.allAvailable\n    });\n    \n    // 支付处理\n    const paymentStart = performance.now();\n    const payment = await processPayment(order.userId, order.total);\n    logger.debug({\n      requestId,\n      event: 'payment_complete',\n      duration: performance.now() - paymentStart,\n      transactionId: payment.transactionId\n    });\n    \n    // 创建订单\n    const createStart = performance.now();\n    const result = await createOrder(order, payment.transactionId);\n    logger.debug({\n      requestId,\n      event: 'order_created',\n      duration: performance.now() - createStart,\n      resultOrderId: result.orderId\n    });\n    \n    logger.info({\n      requestId,\n      event: 'order_processing_complete',\n      duration: performance.now() - startTime,\n      success: true\n    });\n    \n    return result;\n  } catch (error) {\n    logger.error({\n      requestId,\n      event: 'order_processing_failed',\n      duration: performance.now() - startTime,\n      error: error.message,\n      stack: error.stack\n    });\n    throw error;\n  }\n}\n",[2872],[2962],{"type":27,"tag":731,"props":2963,"children":2964},{"__ignoreMap":7},[2965],{"type":33,"value":2959},{"type":27,"tag":28,"props":2967,"children":2969},{"id":2968},"第四部分性能问题排查",[2970],{"type":33,"value":2971},"第四部分：性能问题排查",{"type":27,"tag":925,"props":2973,"children":2975},{"id":2974},"_41-前端性能分析",[2976],{"type":33,"value":2977},"4.1 前端性能分析",{"type":27,"tag":2719,"props":2979,"children":2982},{"code":2980,"language":2870,"meta":7,"className":2981},"// 场景：页面加载慢，需要分析原因\n\n// 提问方式：\n/**\n * 页面首屏加载需要 5 秒，以下是 Performance API 数据，\n * 请分析性能瓶颈：\n */\nconst performanceData = {\n  // Navigation Timing\n  dns: 50,           // DNS 查询\n  tcp: 100,          // TCP 连接\n  ttfb: 800,         // 首字节时间\n  download: 200,     // 文档下载\n  domParsing: 300,   // DOM 解析\n  domContentLoaded: 1500,\n  load: 5000,\n  \n  // Resource Timing (主要资源)\n  resources: [\n    { name: 'main.js', size: '2.5MB', duration: 1200 },\n    { name: 'vendor.js', size: '1.8MB', duration: 900 },\n    { name: 'styles.css', size: '500KB', duration: 300 },\n    { name: 'hero-image.jpg', size: '3MB', duration: 1500 },\n  ],\n  \n  // Long Tasks\n  longTasks: [\n    { startTime: 1600, duration: 800, name: 'script-evaluation' },\n    { startTime: 2500, duration: 400, name: 'layout' }\n  ]\n};\n\n// AI 会分析出：\n// 1. JS bundle 过大（4.3MB），需要代码分割\n// 2. 图片未优化（3MB 的 hero 图片）\n// 3. 存在长任务阻塞主线程\n// 并给出具体优化建议\n",[2872],[2983],{"type":27,"tag":731,"props":2984,"children":2985},{"__ignoreMap":7},[2986],{"type":33,"value":2980},{"type":27,"tag":925,"props":2988,"children":2990},{"id":2989},"_42-内存泄漏排查",[2991],{"type":33,"value":2992},"4.2 内存泄漏排查",{"type":27,"tag":2719,"props":2994,"children":2997},{"code":2995,"language":2870,"meta":7,"className":2996},"// 场景：应用运行一段时间后变卡\n\n// 提问方式：\n/**\n * React 应用运行一段时间后内存持续增长，以下是 Heap Snapshot 对比：\n * \n * 初始状态：50MB\n * 运行 1 小时后：150MB\n * 运行 2 小时后：280MB\n * \n * Retained objects 增长最快的：\n * - (closure) - 增长 50MB\n * - HTMLDivElement - 增长 30MB\n * - Array - 增长 20MB\n * \n * 可疑代码：\n */\nfunction DataDashboard() {\n  const [data, setData] = useState([]);\n  const chartRef = useRef(null);\n  \n  useEffect(() => {\n    // 每秒刷新数据\n    const interval = setInterval(async () => {\n      const newData = await fetchLatestData();\n      setData(prev => [...prev, ...newData]);  // 数据不断累积\n    }, 1000);\n    \n    // 初始化图表\n    const chart = new Chart(chartRef.current, {\n      // 配置...\n    });\n    \n    // 没有 cleanup！\n  }, []);\n  \n  return \u003Ccanvas ref={chartRef} />;\n}\n\n// AI 会指出：\n// 1. interval 没有清理\n// 2. Chart 实例没有销毁\n// 3. data 无限增长\n// 并提供修复代码\n",[2872],[2998],{"type":27,"tag":731,"props":2999,"children":3000},{"__ignoreMap":7},[3001],{"type":33,"value":2995},{"type":27,"tag":925,"props":3003,"children":3005},{"id":3004},"_43-数据库查询优化",[3006],{"type":33,"value":3007},"4.3 数据库查询优化",{"type":27,"tag":2719,"props":3009,"children":3014},{"code":3010,"language":3011,"meta":7,"className":3012},"-- 场景：查询很慢，让 AI 分析执行计划\n\n-- 提问方式：\n-- 以下查询在数据量大时很慢（orders 表 1000 万行），\n-- 执行计划如下，请分析并优化：\n\nEXPLAIN ANALYZE\nSELECT o.*, u.name, u.email\nFROM orders o\nJOIN users u ON o.user_id = u.id\nWHERE o.status = 'pending'\n  AND o.created_at > '2024-01-01'\nORDER BY o.created_at DESC\nLIMIT 20;\n\n-- 执行计划：\n/*\nSort  (cost=156847.23..157847.23 rows=400000 width=250)\n  Sort Key: o.created_at DESC\n  ->  Hash Join  (cost=1500.00..89847.23 rows=400000 width=250)\n        Hash Cond: (o.user_id = u.id)\n        ->  Seq Scan on orders o  (cost=0.00..85000.00 rows=400000)\n              Filter: ((status = 'pending') AND (created_at > '2024-01-01'))\n        ->  Hash  (cost=1000.00..1000.00 rows=50000 width=100)\n              ->  Seq Scan on users u  (cost=0.00..1000.00 rows=50000)\nPlanning Time: 0.5 ms\nExecution Time: 3500 ms\n*/\n\n-- AI 会分析出问题并建议：\n-- 1. orders 表全表扫描 - 需要复合索引\n-- 2. 建议创建索引：\nCREATE INDEX idx_orders_status_created ON orders(status, created_at DESC);\n\n-- 3. 如果 status 选择性不高，考虑部分索引：\nCREATE INDEX idx_orders_pending ON orders(created_at DESC) \nWHERE status = 'pending';\n","sql",[3013],"language-sql",[3015],{"type":27,"tag":731,"props":3016,"children":3017},{"__ignoreMap":7},[3018],{"type":33,"value":3010},{"type":27,"tag":28,"props":3020,"children":3022},{"id":3021},"第五部分复杂-bug-排查",[3023],{"type":33,"value":3024},"第五部分：复杂 Bug 排查",{"type":27,"tag":925,"props":3026,"children":3028},{"id":3027},"_51-竞态条件",[3029],{"type":33,"value":3030},"5.1 竞态条件",{"type":27,"tag":2719,"props":3032,"children":3035},{"code":3033,"language":2870,"meta":7,"className":3034},"// 场景：偶发的数据不一致问题\n\n// 提问方式：\n/**\n * 用户反馈偶尔看到错误的账户余额，但刷新后正常。\n * 怀疑是竞态条件，以下是相关代码：\n */\nasync function updateBalance(userId: string, amount: number) {\n  // 读取当前余额\n  const user = await db.users.findOne({ id: userId });\n  const newBalance = user.balance + amount;\n  \n  // 更新余额\n  await db.users.update({ id: userId }, { balance: newBalance });\n  \n  // 记录交易\n  await db.transactions.create({\n    userId,\n    amount,\n    balanceAfter: newBalance,\n    createdAt: new Date()\n  });\n  \n  return newBalance;\n}\n\n// 并发调用场景：\n// 用户同时发起两笔交易：+100 和 -50\n// 期望结果：原余额 1000 → 1050\n// 实际可能：原余额 1000 → 1100 或 950\n\n// AI 会分析竞态条件并提供解决方案：\nasync function updateBalanceAtomic(userId: string, amount: number) {\n  // 方案 1：使用数据库原子操作\n  const result = await db.users.findOneAndUpdate(\n    { id: userId },\n    { $inc: { balance: amount } },\n    { returnDocument: 'after' }\n  );\n  \n  await db.transactions.create({\n    userId,\n    amount,\n    balanceAfter: result.balance,\n    createdAt: new Date()\n  });\n  \n  return result.balance;\n}\n\n// 方案 2：使用乐观锁\nasync function updateBalanceOptimistic(userId: string, amount: number) {\n  const maxRetries = 3;\n  \n  for (let i = 0; i \u003C maxRetries; i++) {\n    const user = await db.users.findOne({ id: userId });\n    const newBalance = user.balance + amount;\n    \n    const updated = await db.users.updateOne(\n      { id: userId, version: user.version },\n      { balance: newBalance, version: user.version + 1 }\n    );\n    \n    if (updated.modifiedCount === 1) {\n      await db.transactions.create({...});\n      return newBalance;\n    }\n    \n    // 版本冲突，重试\n    await sleep(10 * (i + 1));\n  }\n  \n  throw new Error('Update failed after retries');\n}\n",[2872],[3036],{"type":27,"tag":731,"props":3037,"children":3038},{"__ignoreMap":7},[3039],{"type":33,"value":3033},{"type":27,"tag":925,"props":3041,"children":3043},{"id":3042},"_52-分布式系统问题",[3044],{"type":33,"value":3045},"5.2 分布式系统问题",{"type":27,"tag":2719,"props":3047,"children":3050},{"code":3048,"language":2870,"meta":7,"className":3049},"// 场景：微服务间的数据不一致\n\n// 提问方式：\n/**\n * 订单服务和库存服务偶尔出现数据不一致：\n * - 订单显示已创建\n * - 库存未扣减\n * \n * 当前流程：\n */\n// Order Service\nasync function createOrder(orderData) {\n  // 1. 调用库存服务扣减库存\n  await inventoryService.deduct(orderData.items);\n  \n  // 2. 创建订单\n  const order = await orderRepository.create(orderData);\n  \n  // 3. 发送订单创建事件\n  await eventBus.publish('order.created', order);\n  \n  return order;\n}\n\n// 问题分析：如果步骤 2 或 3 失败，库存已经扣减但订单未创建\n\n// AI 会建议使用 Saga 模式或事务发件箱模式\n",[2872],[3051],{"type":27,"tag":731,"props":3052,"children":3053},{"__ignoreMap":7},[3054],{"type":33,"value":3048},{"type":27,"tag":28,"props":3056,"children":3058},{"id":3057},"第六部分ai-调试工作流",[3059],{"type":33,"value":3060},"第六部分：AI 调试工作流",{"type":27,"tag":925,"props":3062,"children":3064},{"id":3063},"_61-我的调试流程",[3065],{"type":33,"value":3066},"6.1 我的调试流程",{"type":27,"tag":2719,"props":3068,"children":3070},{"code":3069},"┌────────────────────────────────────────────────────────────┐\n│                    AI 辅助调试工作流                         │\n├────────────────────────────────────────────────────────────┤\n│                                                            │\n│  Step 1: 问题收集                                          │\n│  ├── 复制完整错误信息                                       │\n│  ├── 截图相关日志                                          │\n│  └── 记录复现步骤                                          │\n│                                                            │\n│  Step 2: 快速分析                                          │\n│  ├── 将错误信息发给 AI                                      │\n│  ├── 获取可能原因列表                                       │\n│  └── 评估哪些最可能                                         │\n│                                                            │\n│  Step 3: 深入调查                                          │\n│  ├── 根据 AI 建议添加日志/断点                              │\n│  ├── 收集更多信息                                          │\n│  └── 再次询问 AI（带新信息）                                │\n│                                                            │\n│  Step 4: 验证修复                                          │\n│  ├── AI 生成修复代码                                        │\n│  ├── 人工审查确认                                          │\n│  └── 测试验证                                               │\n│                                                            │\n│  Step 5: 预防措施                                          │\n│  ├── AI 建议类似问题的预防方法                              │\n│  ├── 添加相关测试用例                                       │\n│  └── 更新文档/知识库                                        │\n│                                                            │\n└────────────────────────────────────────────────────────────┘\n",[3071],{"type":27,"tag":731,"props":3072,"children":3073},{"__ignoreMap":7},[3074],{"type":33,"value":3069},{"type":27,"tag":925,"props":3076,"children":3078},{"id":3077},"_62-调试对话模板",[3079],{"type":33,"value":3080},"6.2 调试对话模板",{"type":27,"tag":2719,"props":3082,"children":3085},{"code":3083,"language":476,"meta":7,"className":3084},"## 第一轮：问题描述\n\n我遇到了一个问题：[简述问题]\n\n错误信息：\n",[2723],[3086],{"type":27,"tag":731,"props":3087,"children":3088},{"__ignoreMap":7},[3089],{"type":33,"value":3083},{"type":27,"tag":35,"props":3091,"children":3092},{},[3093],{"type":27,"tag":2733,"props":3094,"children":3095},{},[3096],{"type":33,"value":3097},"粘贴完整错误",{"type":27,"tag":2719,"props":3099,"children":3101},{"code":3100},"\n相关代码：\n```javascript\n[粘贴代码]\n",[3102],{"type":27,"tag":731,"props":3103,"children":3104},{"__ignoreMap":7},[3105],{"type":33,"value":3100},{"type":27,"tag":46,"props":3107,"children":3108},{},[],{"type":27,"tag":28,"props":3110,"children":3112},{"id":3111},"第二轮补充信息",[3113],{"type":33,"value":3114},"第二轮：补充信息",{"type":27,"tag":35,"props":3116,"children":3117},{},[3118],{"type":33,"value":3119},"根据你的建议，我添加了日志，发现：",{"type":27,"tag":61,"props":3121,"children":3122},{},[3123,3131],{"type":27,"tag":65,"props":3124,"children":3125},{},[3126],{"type":27,"tag":2733,"props":3127,"children":3128},{},[3129],{"type":33,"value":3130},"发现 1",{"type":27,"tag":65,"props":3132,"children":3133},{},[3134],{"type":27,"tag":2733,"props":3135,"children":3136},{},[3137],{"type":33,"value":3138},"发现 2",{"type":27,"tag":35,"props":3140,"children":3141},{},[3142,3144,3149],{"type":33,"value":3143},"这是否说明问题出在 ",{"type":27,"tag":2733,"props":3145,"children":3146},{},[3147],{"type":33,"value":3148},"你的猜测",{"type":33,"value":3150},"？",{"type":27,"tag":46,"props":3152,"children":3153},{},[],{"type":27,"tag":28,"props":3155,"children":3157},{"id":3156},"第三轮确认修复",[3158],{"type":33,"value":3159},"第三轮：确认修复",{"type":27,"tag":35,"props":3161,"children":3162},{},[3163],{"type":33,"value":3164},"我按照你的建议修改了代码：",{"type":27,"tag":2719,"props":3166,"children":3169},{"code":3167,"language":2895,"meta":7,"className":3168},"[粘贴修改后的代码]\n",[2897],[3170],{"type":27,"tag":731,"props":3171,"children":3172},{"__ignoreMap":7},[3173],{"type":33,"value":3167},{"type":27,"tag":35,"props":3175,"children":3176},{},[3177],{"type":33,"value":3178},"请确认这个修复是否正确，以及是否有其他潜在问题。",{"type":27,"tag":46,"props":3180,"children":3181},{},[],{"type":27,"tag":28,"props":3183,"children":3185},{"id":3184},"第四轮预防",[3186],{"type":33,"value":3187},"第四轮：预防",{"type":27,"tag":35,"props":3189,"children":3190},{},[3191],{"type":33,"value":3192},"这个问题已解决。请建议：",{"type":27,"tag":311,"props":3194,"children":3195},{},[3196,3201,3206],{"type":27,"tag":65,"props":3197,"children":3198},{},[3199],{"type":33,"value":3200},"如何防止类似问题再次发生？",{"type":27,"tag":65,"props":3202,"children":3203},{},[3204],{"type":33,"value":3205},"应该添加什么测试用例？",{"type":27,"tag":65,"props":3207,"children":3208},{},[3209],{"type":33,"value":3210},"有什么最佳实践可以参考？",{"type":27,"tag":2719,"props":3212,"children":3214},{"code":3213},"\n## 结语：AI 是放大器，不是替代品\n\nAI 调试工具能够显著加速问题排查过程，但它不能替代你的思考。最有价值的能力组合是：\n\n- **你的领域知识** + **AI 的广博见识**\n- **你对项目的理解** + **AI 的分析能力**\n- **你的判断力** + **AI 的执行速度**\n\n调试的本质是假设-验证的循环。AI 帮你更快地生成假设、更高效地验证假设，但做出最终判断的还是你。\n\n学会与 AI 高效协作调试，不是依赖 AI 给你答案，而是让 AI 帮你更快地找到自己的答案。\n\n---\n\n## 参考资源\n\n- [Chrome DevTools 官方文档](https://developer.chrome.com/docs/devtools)\n- [Node.js 调试指南](https://nodejs.org/en/docs/guides/debugging-getting-started)\n- [React DevTools 使用指南](https://react.dev/learn/react-developer-tools)\n",[3215],{"type":27,"tag":731,"props":3216,"children":3217},{"__ignoreMap":7},[3218],{"type":33,"value":3213},{"title":7,"searchDepth":464,"depth":464,"links":3220},[3221,3222,3223,3228,3232,3237,3241,3245,3246,3247],{"id":2603,"depth":467,"text":2606},{"id":2609,"depth":467,"text":2612},{"id":2630,"depth":467,"text":2633,"children":3224},[3225,3226,3227],{"id":2636,"depth":464,"text":2639},{"id":2714,"depth":464,"text":2717},{"id":2880,"depth":464,"text":2883},{"id":2922,"depth":467,"text":2925,"children":3229},[3230,3231],{"id":2928,"depth":464,"text":2931},{"id":2948,"depth":464,"text":2951},{"id":2968,"depth":467,"text":2971,"children":3233},[3234,3235,3236],{"id":2974,"depth":464,"text":2977},{"id":2989,"depth":464,"text":2992},{"id":3004,"depth":464,"text":3007},{"id":3021,"depth":467,"text":3024,"children":3238},[3239,3240],{"id":3027,"depth":464,"text":3030},{"id":3042,"depth":464,"text":3045},{"id":3057,"depth":467,"text":3060,"children":3242},[3243,3244],{"id":3063,"depth":464,"text":3066},{"id":3077,"depth":464,"text":3080},{"id":3111,"depth":467,"text":3114},{"id":3156,"depth":467,"text":3159},{"id":3184,"depth":467,"text":3187},"content:topics:ai:ai-debugging-troubleshooting-guide.md","topics/ai/ai-debugging-troubleshooting-guide.md","topics/ai/ai-debugging-troubleshooting-guide",{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"topic":5,"author":11,"tags":3252,"image":18,"imageQuery":19,"pexelsPhotoId":20,"pexelsUrl":21,"featured":6,"readingTime":22,"body":3253,"_type":476,"_id":477,"_source":478,"_file":479,"_stem":480,"_extension":481},[13,14,15,16,17],{"type":24,"children":3254,"toc":3600},[3255,3259,3263,3267,3270,3274,3278,3293,3297,3312,3316,3319,3323,3407,3411,3414,3418,3422,3437,3441,3444,3448,3452,3467,3471,3474,3478,3497,3501,3504,3508,3527,3531,3534,3538,3561,3564,3568,3572,3576],{"type":27,"tag":28,"props":3256,"children":3257},{"id":30},[3258],{"type":33,"value":8},{"type":27,"tag":35,"props":3260,"children":3261},{},[3262],{"type":33,"value":39},{"type":27,"tag":35,"props":3264,"children":3265},{},[3266],{"type":33,"value":44},{"type":27,"tag":46,"props":3268,"children":3269},{},[],{"type":27,"tag":28,"props":3271,"children":3272},{"id":51},[3273],{"type":33,"value":54},{"type":27,"tag":35,"props":3275,"children":3276},{},[3277],{"type":33,"value":59},{"type":27,"tag":61,"props":3279,"children":3280},{},[3281,3285,3289],{"type":27,"tag":65,"props":3282,"children":3283},{},[3284],{"type":33,"value":69},{"type":27,"tag":65,"props":3286,"children":3287},{},[3288],{"type":33,"value":74},{"type":27,"tag":65,"props":3290,"children":3291},{},[3292],{"type":33,"value":79},{"type":27,"tag":35,"props":3294,"children":3295},{},[3296],{"type":33,"value":84},{"type":27,"tag":61,"props":3298,"children":3299},{},[3300,3304,3308],{"type":27,"tag":65,"props":3301,"children":3302},{},[3303],{"type":33,"value":92},{"type":27,"tag":65,"props":3305,"children":3306},{},[3307],{"type":33,"value":97},{"type":27,"tag":65,"props":3309,"children":3310},{},[3311],{"type":33,"value":102},{"type":27,"tag":35,"props":3313,"children":3314},{},[3315],{"type":33,"value":107},{"type":27,"tag":46,"props":3317,"children":3318},{},[],{"type":27,"tag":28,"props":3320,"children":3321},{"id":113},[3322],{"type":33,"value":116},{"type":27,"tag":118,"props":3324,"children":3325},{},[3326,3344],{"type":27,"tag":122,"props":3327,"children":3328},{},[3329],{"type":27,"tag":126,"props":3330,"children":3331},{},[3332,3336,3340],{"type":27,"tag":130,"props":3333,"children":3334},{},[3335],{"type":33,"value":134},{"type":27,"tag":130,"props":3337,"children":3338},{},[3339],{"type":33,"value":139},{"type":27,"tag":130,"props":3341,"children":3342},{},[3343],{"type":33,"value":144},{"type":27,"tag":146,"props":3345,"children":3346},{},[3347,3362,3377,3392],{"type":27,"tag":126,"props":3348,"children":3349},{},[3350,3354,3358],{"type":27,"tag":153,"props":3351,"children":3352},{},[3353],{"type":33,"value":157},{"type":27,"tag":153,"props":3355,"children":3356},{},[3357],{"type":33,"value":162},{"type":27,"tag":153,"props":3359,"children":3360},{},[3361],{"type":33,"value":167},{"type":27,"tag":126,"props":3363,"children":3364},{},[3365,3369,3373],{"type":27,"tag":153,"props":3366,"children":3367},{},[3368],{"type":33,"value":175},{"type":27,"tag":153,"props":3370,"children":3371},{},[3372],{"type":33,"value":180},{"type":27,"tag":153,"props":3374,"children":3375},{},[3376],{"type":33,"value":185},{"type":27,"tag":126,"props":3378,"children":3379},{},[3380,3384,3388],{"type":27,"tag":153,"props":3381,"children":3382},{},[3383],{"type":33,"value":193},{"type":27,"tag":153,"props":3385,"children":3386},{},[3387],{"type":33,"value":198},{"type":27,"tag":153,"props":3389,"children":3390},{},[3391],{"type":33,"value":203},{"type":27,"tag":126,"props":3393,"children":3394},{},[3395,3399,3403],{"type":27,"tag":153,"props":3396,"children":3397},{},[3398],{"type":33,"value":211},{"type":27,"tag":153,"props":3400,"children":3401},{},[3402],{"type":33,"value":216},{"type":27,"tag":153,"props":3404,"children":3405},{},[3406],{"type":33,"value":221},{"type":27,"tag":35,"props":3408,"children":3409},{},[3410],{"type":33,"value":226},{"type":27,"tag":46,"props":3412,"children":3413},{},[],{"type":27,"tag":28,"props":3415,"children":3416},{"id":232},[3417],{"type":33,"value":235},{"type":27,"tag":35,"props":3419,"children":3420},{},[3421],{"type":33,"value":240},{"type":27,"tag":61,"props":3423,"children":3424},{},[3425,3429,3433],{"type":27,"tag":65,"props":3426,"children":3427},{},[3428],{"type":33,"value":248},{"type":27,"tag":65,"props":3430,"children":3431},{},[3432],{"type":33,"value":253},{"type":27,"tag":65,"props":3434,"children":3435},{},[3436],{"type":33,"value":258},{"type":27,"tag":35,"props":3438,"children":3439},{},[3440],{"type":33,"value":263},{"type":27,"tag":46,"props":3442,"children":3443},{},[],{"type":27,"tag":28,"props":3445,"children":3446},{"id":269},[3447],{"type":33,"value":272},{"type":27,"tag":35,"props":3449,"children":3450},{},[3451],{"type":33,"value":277},{"type":27,"tag":61,"props":3453,"children":3454},{},[3455,3459,3463],{"type":27,"tag":65,"props":3456,"children":3457},{},[3458],{"type":33,"value":285},{"type":27,"tag":65,"props":3460,"children":3461},{},[3462],{"type":33,"value":290},{"type":27,"tag":65,"props":3464,"children":3465},{},[3466],{"type":33,"value":295},{"type":27,"tag":35,"props":3468,"children":3469},{},[3470],{"type":33,"value":300},{"type":27,"tag":46,"props":3472,"children":3473},{},[],{"type":27,"tag":28,"props":3475,"children":3476},{"id":306},[3477],{"type":33,"value":309},{"type":27,"tag":311,"props":3479,"children":3480},{},[3481,3485,3489,3493],{"type":27,"tag":65,"props":3482,"children":3483},{},[3484],{"type":33,"value":318},{"type":27,"tag":65,"props":3486,"children":3487},{},[3488],{"type":33,"value":323},{"type":27,"tag":65,"props":3490,"children":3491},{},[3492],{"type":33,"value":328},{"type":27,"tag":65,"props":3494,"children":3495},{},[3496],{"type":33,"value":333},{"type":27,"tag":35,"props":3498,"children":3499},{},[3500],{"type":33,"value":338},{"type":27,"tag":46,"props":3502,"children":3503},{},[],{"type":27,"tag":28,"props":3505,"children":3506},{"id":344},[3507],{"type":33,"value":347},{"type":27,"tag":61,"props":3509,"children":3510},{},[3511,3515,3519,3523],{"type":27,"tag":65,"props":3512,"children":3513},{},[3514],{"type":33,"value":355},{"type":27,"tag":65,"props":3516,"children":3517},{},[3518],{"type":33,"value":360},{"type":27,"tag":65,"props":3520,"children":3521},{},[3522],{"type":33,"value":365},{"type":27,"tag":65,"props":3524,"children":3525},{},[3526],{"type":33,"value":370},{"type":27,"tag":35,"props":3528,"children":3529},{},[3530],{"type":33,"value":375},{"type":27,"tag":46,"props":3532,"children":3533},{},[],{"type":27,"tag":28,"props":3535,"children":3536},{"id":381},[3537],{"type":33,"value":384},{"type":27,"tag":61,"props":3539,"children":3540},{},[3541,3545,3549,3553,3557],{"type":27,"tag":65,"props":3542,"children":3543},{},[3544],{"type":33,"value":392},{"type":27,"tag":65,"props":3546,"children":3547},{},[3548],{"type":33,"value":397},{"type":27,"tag":65,"props":3550,"children":3551},{},[3552],{"type":33,"value":402},{"type":27,"tag":65,"props":3554,"children":3555},{},[3556],{"type":33,"value":407},{"type":27,"tag":65,"props":3558,"children":3559},{},[3560],{"type":33,"value":412},{"type":27,"tag":46,"props":3562,"children":3563},{},[],{"type":27,"tag":28,"props":3565,"children":3566},{"id":418},[3567],{"type":33,"value":421},{"type":27,"tag":35,"props":3569,"children":3570},{},[3571],{"type":33,"value":426},{"type":27,"tag":35,"props":3573,"children":3574},{},[3575],{"type":33,"value":431},{"type":27,"tag":61,"props":3577,"children":3578},{},[3579,3586,3593],{"type":27,"tag":65,"props":3580,"children":3581},{},[3582],{"type":27,"tag":439,"props":3583,"children":3584},{"href":441},[3585],{"type":33,"value":444},{"type":27,"tag":65,"props":3587,"children":3588},{},[3589],{"type":27,"tag":439,"props":3590,"children":3591},{"href":450},[3592],{"type":33,"value":453},{"type":27,"tag":65,"props":3594,"children":3595},{},[3596],{"type":27,"tag":439,"props":3597,"children":3598},{"href":459},[3599],{"type":33,"value":462},{"title":7,"searchDepth":464,"depth":464,"links":3601},[3602,3603,3604,3605,3606,3607,3608,3609,3610],{"id":30,"depth":467,"text":8},{"id":51,"depth":467,"text":54},{"id":113,"depth":467,"text":116},{"id":232,"depth":467,"text":235},{"id":269,"depth":467,"text":272},{"id":306,"depth":467,"text":309},{"id":344,"depth":467,"text":347},{"id":381,"depth":467,"text":384},{"id":418,"depth":467,"text":421},1776916078997]