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