底座 · Tab、Cmd+K、Chat 到此为止The Base · Tab, Cmd+K, Chat — Where Most Stop.
Tab 替你补全,Cmd+K 改选中的几行,Chat 回答你贴进去的问题 —— 这三样好用,好用到你以为 Cursor 就是这些。九成用户停在这一层。这一章先把它讲清楚:每样省什么、各自的天花板在哪,以及为什么停在这里,你就只把它当了个更聪明的编辑器。Tab completes for you, Cmd+K rewrites the lines you select, Chat answers the question you paste in — these three are good, good enough that you assume Cursor is just this. Most users stop at this layer. This chapter pins it down: what each saves, where each one's ceiling is, and why stopping here leaves you with nothing more than a smarter editor.
Tab 替你补全,Cmd+K 改选中的几行,Chat 回答你贴进去的问题。这三样是任何一个 AI 编辑器都有的底座,也是九成 Cursor 用户唯一用到的层。Tab completes for you, Cmd+K rewrites the lines you select, Chat answers the question you paste in. These three are the base layer every AI editor has, and the only layer nine in ten Cursor users ever touch.这一章不教你怎么用这三样 —— 你早会了。它要做的是给每样画一条天花板:它强在哪、到哪儿就不够了。认出那条线,你才知道什么时候该往下一层、把活交给 agent,而不是继续在底座上手动较劲。This chapter won't teach you to use the three — you already can. What it does is draw a ceiling on each: where it's strong, and where it runs out. Recognize that line and you know when to drop a layer and hand the work to the agent, instead of grinding on the base by hand.
入口Entry
先用它,当你...Use it when...
不要用它,当你...Avoid it when...
Tab
已经知道下一行大概是什么,只是不想敲Already know roughly what comes next and just do not want to type
还没决定设计、接口或边界Have not decided the design, interface, or boundary
Cmd+K / Inline Edit
能选中一个明确范围,让它局部改写Can select a precise range for a local rewrite
改动会影响调用方、测试或多个文件The change affects callers, tests, or multiple files
Chat / Ask
需要解释、定位、比较方案,暂时不改文件Need explanation, location, or options without file edits
已经知道要改什么,只差执行Already know what to change and only need execution
Agent
有目标、范围、测试命令、验收标准Have a goal, scope, test command, and acceptance criteria
只是想改三行、问一句、或让它猜你的意图Only need three lines changed, one question answered, or mind-reading
提示词PromptCmd+K / Inline Edit
只改选中范围:
- 目标:<一句话说明局部改动>
- 保持现有接口和命名
- 不新增依赖
- 不改选区外文件
给我可直接接受的 diff。Change only the selected range:
- Goal: <one sentence describing the local change>
- Keep the existing interface and names
- Add no dependency
- Do not modify files outside the selection
Give me an accept-ready diff.
只改选中范围:
- 目标:把这段错误处理改成早返回,避免嵌套 if
- 保持现有接口和命名
- 不新增依赖
- 不改选区外文件
给我可直接接受的 diff。Change only the selected range:
- Goal: rewrite this error handling as early returns to avoid nested ifs
- Keep the existing interface and names
- Add no dependency
- Do not modify files outside the selection
Give me an accept-ready diff.
— I
Tab 省的是手,不是脑Tab Saves Your Hands, Not Your Head.
Tab 替你打字,不替你定方向。Tab types for you; it doesn't decide your direction.它依据你最近的编辑、光标周围的代码和 linter 报错,预测下一处改动 —— 不只是补全当前这行,还会顺着你的改动方向往下接,跨行、跨多步。1注 1Note 1Cursor Docs · Tab —— AI 自动补全,依据你最近的编辑、周围代码和 linter 报错预测下一处改动,可跨行、可跨文件接受多步。截至 2026-07-10。Cursor Docs · Tab — AI autocomplete that predicts your next edit from recent edits, surrounding code, and linter errors; multi-line, multi-step, and across files. As of 2026-07-10.它最值钱的场景是「我知道要写什么、只是懒得敲」:重命名扩散、补样板、顺着已有模式接下一段。这类连续动作,它替你省掉的是肌肉记忆。It predicts your next edit from your recent edits, the code around the cursor, and linter errors — not just completing the current line but following the direction of your change, across lines and multiple steps.1注 1Note 1Cursor Docs · Tab —— AI 自动补全,依据你最近的编辑、周围代码和 linter 报错预测下一处改动,可跨行、可跨文件接受多步。截至 2026-07-10。Cursor Docs · Tab — AI autocomplete that predicts your next edit from recent edits, surrounding code, and linter errors; multi-line, multi-step, and across files. As of 2026-07-10. Its best case is 'I know what to write, I just don't want to type it': propagating a rename, filling boilerplate, continuing an established pattern. For that kind of momentum work, what it saves is muscle memory.天花板也在这里:它跟随,不引领。它接得住你已经定下的方向,却不会替你决定该不该这么写、这块要不要重构、这个设计对不对。一旦你需要的是「想清楚怎么改」而不是「快点敲出来」,Tab 就帮不上了 —— 那是后面 agent 的活。The ceiling is right there: it follows, it doesn't lead. It catches a direction you've already set, but won't decide whether you should write it this way, whether this block needs restructuring, or whether the design is right. The moment you need 'figure out how to change it' rather than 'type it faster,' Tab is out of its depth — that's the agent's job later.
— II
Cmd+K 的上限就是你的选区Cmd+K's Ceiling Is Your Selection.
选中多少,它就改多少 —— 范围就是它的能力边界。It changes exactly what you select — the selection is the edge of what it can do.Cmd+K(Inline Edit)对你选中的那段代码做定向修改,原地应用、不用开聊天面板。2注 2Note 2Cursor Docs · Inline Edit —— Cmd/Ctrl+K 对选中的代码做小范围定向修改,不离开当前位置、不开聊天面板;要跨文件时 Cmd+L 把选区带进 Agent。截至 2026-07-10。Cursor Docs · Inline Edit — Cmd/Ctrl+K makes targeted edits to the selected code in place, without opening the chat panel; for multi-file work, Cmd+L carries the selection into Agent. As of 2026-07-10.优点是快、准、不跑题:你框定了范围,它就不会去动别处。「把这个函数改成 async」「这段加上错误处理」—— 这类「我知道改哪、就这几行」的活,Cmd+K 比开一轮对话快得多。Cmd+K (Inline Edit) makes a targeted change to the code you selected, applied in place without opening the chat panel.2注 2Note 2Cursor Docs · Inline Edit —— Cmd/Ctrl+K 对选中的代码做小范围定向修改,不离开当前位置、不开聊天面板;要跨文件时 Cmd+L 把选区带进 Agent。截至 2026-07-10。Cursor Docs · Inline Edit — Cmd/Ctrl+K makes targeted edits to the selected code in place, without opening the chat panel; for multi-file work, Cmd+L carries the selection into Agent. As of 2026-07-10. The upside is fast, precise, on-task: you bound the scope, so it won't touch elsewhere. 'Make this function async,' 'add error handling here' — for 'I know where, just these lines' work, Cmd+K beats opening a conversation.它的上限就是你框的那个选区。它只看你给的那段,不做项目级推理 —— 不会去查别的文件怎么调用它、不会顺手改掉受影响的调用方。要跨文件、要先理解整块再动,就别用 Cmd+K 硬撑,切到 Agent。Its ceiling is the selection you drew. It sees only the passage you handed it and does no project-level reasoning — it won't check how other files call it, won't fix the affected callers on the way. When a change spans files or needs understanding the whole area first, don't force Cmd+K — switch to the Agent.
— III
Chat / Ask 解释,但不动手Chat / Ask Explains, but Doesn't Act.
Ask 把代码库读给你听,但一个字都不改 —— 它的产物是理解,不是改动。Ask reads the codebase back to you but changes nothing — its product is understanding, not edits.Ask 模式只读地搜索你的代码库、回答问题,不碰文件。3注 3Note 3Cursor Docs · Agent mode —— 模式分工:Ask 只读(read-only)地回答、不改文件;Agent 动手;Plan 先出可审阅的计划;Debug 拿运行时证据抓疑难 bug。Shift+Tab 轮换模式,各模式各用一份独立上下文。截至 2026-07-10。Cursor Docs · Agent mode — the split: Ask answers read-only without edits; Agent acts; Plan drafts a reviewable plan first; Debug chases hard bugs with runtime evidence. Shift+Tab cycles modes; each mode uses its own context. As of 2026-07-10.它最适合「改之前先看懂」:这块逻辑在哪、为什么这么写、改了会牵动谁。和底座另两样不同,它给的是判断的材料,不是改好的代码。Ask mode searches your codebase read-only and answers questions, touching no files.3注 3Note 3Cursor Docs · Agent mode —— 模式分工:Ask 只读(read-only)地回答、不改文件;Agent 动手;Plan 先出可审阅的计划;Debug 拿运行时证据抓疑难 bug。Shift+Tab 轮换模式,各模式各用一份独立上下文。截至 2026-07-10。Cursor Docs · Agent mode — the split: Ask answers read-only without edits; Agent acts; Plan drafts a reviewable plan first; Debug chases hard bugs with runtime evidence. Shift+Tab cycles modes; each mode uses its own context. As of 2026-07-10. It's best for 'understand before you change': where this logic lives, why it's written this way, what a change would ripple into. Unlike the other two on the base, it gives you material for judgment, not finished code.但它不动手 —— 看懂之后,粘贴、运行、应用还是你自己来。从 Ask 跳到 Agent,就是从「它告诉我」跳到「它替我做完」:Shift+Tab 在 Ask / Agent / Plan / Debug 之间轮换。3注 3Note 3Cursor Docs · Agent mode —— 模式分工:Ask 只读(read-only)地回答、不改文件;Agent 动手;Plan 先出可审阅的计划;Debug 拿运行时证据抓疑难 bug。Shift+Tab 轮换模式,各模式各用一份独立上下文。截至 2026-07-10。Cursor Docs · Agent mode — the split: Ask answers read-only without edits; Agent acts; Plan drafts a reviewable plan first; Debug chases hard bugs with runtime evidence. Shift+Tab cycles modes; each mode uses its own context. As of 2026-07-10.那一跳,是这本书剩下的全部。But it doesn't act — once you understand, pasting, running, and applying are still yours. Jumping from Ask to Agent is jumping from 'it tells me' to 'it finishes for me': Shift+Tab rotates through Ask / Agent / Plan / Debug.3注 3Note 3Cursor Docs · Agent mode —— 模式分工:Ask 只读(read-only)地回答、不改文件;Agent 动手;Plan 先出可审阅的计划;Debug 拿运行时证据抓疑难 bug。Shift+Tab 轮换模式,各模式各用一份独立上下文。截至 2026-07-10。Cursor Docs · Agent mode — the split: Ask answers read-only without edits; Agent acts; Plan drafts a reviewable plan first; Debug chases hard bugs with runtime evidence. Shift+Tab cycles modes; each mode uses its own context. As of 2026-07-10. That jump is the rest of this book.把这三样在一件真实任务里走一遍,记下你在哪一步「不够用了」:Run all three through one real task, and note the step where they 'ran out':
挑一件你今天真要做的小任务,先只用 Tab + Cmd+K + Ask 完成它。Pick a small task you actually need to do today; finish it using only Tab + Cmd+K + Ask.
记下每一步你用了哪样、它省了什么。Note which one you used at each step and what it saved.
标出第一处你想「要是它能自己跨文件改 / 自己跑一下就好了」的地方。Mark the first moment you wished 'if only it could edit across files / run it itself.'
那一处,就是你该切到 Agent 的信号 —— 下一章接住它。That moment is your signal to switch to the Agent — the next chapter picks it up.
补全省的是手,
省不了你定方向.
Autocomplete saves your hands,
not your sense of direction.
Aklman Library
— 讨论Discussion
讨论Discussion.
评论区初始化中…Initializing comments…
01 / 01
没有匹配结果No matches.
换个关键词,或按 Esc 回到页面Try another keyword, or press Esc to return