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