DocsWriting & projects

Writing assist panel: select text, then revise

Updated December 5, 20262 min readWriting assistShortcuts
In this section: Writing & projectsAll docs →

Select text, press ⌘/Ctrl + K, describe the change, and the AI returns a new version with context to review before it replaces the original.

Basic usage

  1. In the editor, select the text you want changed (with nothing selected, the paragraph under the cursor is used).
  2. Press ⌘/Ctrl + K to open the writing assist panel.
  3. Enter a request, for example:
    • "Keep the tone more restrained and cut the piled-up adjectives"
    • "Add 200 words of setting description without advancing the plot"
    • "Rewrite it in third-person limited point of view"
  4. Compare the old and new versions, then accept, retry, or discard.

How it differs from agent chat

Writing assist panelAgent
ScopeOne selected passageThe whole project, across files
ContextThe current file plus related settingsThe agent in your solution plus the files its tools read
Good forPolishing, rewriting, expandingWriting a new chapter, building a framework, cross-file tidying

In short: use the panel to change a passage, use the agent to change structure.

How to phrase requests for usable results

  • Say what to change and what to leave alone: "Only adjust the pacing, do not change the dialogue."
  • Give a reference: "Match the density of the fight scene earlier."
  • Change one thing at a time: asking for polish and new plot at once usually gets neither right.
  • If you are unhappy, retry rather than layering edits on the same passage; if it breaks, restore a File history version.

Where the context comes from

The panel includes the current file and the material you referenced in the conversation. If the AI seems unaware of earlier text, it usually did not read the chapter: tell the agent "read chapter 3 first, then revise", or put the key settings into roles / objects.

Long-form completion

Large completions (continuing several thousand words, for example) use streaming requests, and higher reasoning effort means longer timeouts. A long silence does not necessarily mean a stall; check whether the status bar still says it is generating. After a failure, retry resends only the request that failed.

Common questions

Does a change in the panel overwrite the body directly?

No. The result replaces the original only after you confirm, and the version before the replacement goes into File history.

Why does the panel sometimes report that the context is too large?

The selection and the referenced material exceed the model window. Select less, reference less, or switch to the agent and work chapter by chapter. See Context management and compaction.

Was this page helpful?

Related reading