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