Skip to content

Copyediting, Spelling & Grammar

Where Focus and Typewriter modes are designed to help with writing, the copyedit features help with editing and tweaking your work. They live in the Copyedit tab of the right sidebar, which you can open with Command + 3 Control + 3 Command + 3 .

The Copyedit tab beside a recipe, with noun and verb highlights on and the spelling, grammar and style switches below them

You can highlight the different parts of speech in your text, each in its own colour.

The editor with copyedit highlighting on, colouring different parts of speech

Part of speech Colour Why you might want it
Nouns Red Identify the subjects and objects in your text
Verbs Blue Spot action words and check tense patterns
Adjectives Brown Review how much descriptive language you use
Adverbs Pink Catch potentially unnecessary modifiers
Conjunctions Green See how your sentences are connected

Pick the ones you want from the dropdown at the top of the Copyedit panel, which names the highlights that are on and has Show All and Hide All. You can also switch them individually or all together from the command palette.

Switch on Spelling, Grammar and Style in the Copyedit panel. Issues are underlined in the editor, in red for spelling, blue for grammar and green for style, and listed in the panel in the order they appear in your file.

A rough draft with spelling, grammar and style issues underlined in the editor, and the same issues listed in the Copyedit panel

The checks use Harper, which is built into Astro Editor and runs entirely on your computer, so nothing you write is sent anywhere. It loads the first time a check runs, so you’ll see a short “Starting checks…” pause. It only checks English. You can choose American, British, Canadian, Australian or Indian English in Preferences.

Hover over an underline, or click an issue in the panel, to see what Harper suggests.

A popover above a misspelled word, offering fourth, forty and fourths as fixes, with Add to Dictionary and Ignore below them

  • Click a suggestion to apply it.
  • Add to Dictionary (spelling only) tells the spelling check the word is fine. You can edit your dictionary in Preferences.
  • Ignore hides the issue wherever the same words appear, in any file. Clear Ignored Issues in Preferences brings them all back.

Harper checks your prose, including the text of links and the text inside components. It doesn’t check:

  • Your frontmatter
  • Code, inline or in blocks
  • URLs and images
  • HTML and component tags
  • MDX imports and {expressions}
  • Paths and file names

The checks are deliberately quiet, so they’ll miss some mistakes rather than nag you about things that are fine. They don’t flag:

  • Names and acronyms: capitalised words inside a sentence, and things like MDX or APIs.
  • Words that look like code, like pubDate, v1 or max_width.
  • House-style choices, like the Oxford comma, “config” instead of “configuration”, or “gonna”.
  • Lowercase list items and table cells, which are usually a choice.
  • Common Astro words, like “frontmatter”.