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