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