CC-301k · Module 1
Inline Editing Workflows
3 min read
Inline editing is the highest-throughput interaction pattern in the VS Code extension. Select code, invoke Claude with a keyboard shortcut, type a brief instruction, and Claude modifies the selected code in place. The edit appears as a diff in your editor — you accept or reject it with a single keystroke. No context switching. No copy-paste. No waiting for a full response in a chat panel.
The effective inline prompts are terse. "Add error handling." "Make this async." "Extract to a function." "Add TypeScript types." "Rename to camelCase." These are the micro-tasks that interrupt your flow when done manually — switching to a chat panel, explaining the context, applying the result. Inline editing eliminates the overhead. The context is the selected code. The instruction is the intent. The result appears in place.
Do This
- Use inline editing for micro-tasks: type changes, error handling, renaming
- Select exactly the code you want modified — selection is the context
- Keep instructions terse: "Add null check" not "Please add a null check to this..."
- Use the chat panel for tasks that require reading multiple files
Avoid This
- Use the chat panel for single-function edits — inline is faster
- Select entire files for inline editing — too much context, slow response
- Write paragraph-length instructions for inline edits — terse is better
- Accept inline edits without reviewing the diff — always review