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