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