VS Code Extensions
P

Prose Quotes

by probablyduncan

Convert straight quotes/apostrophes to curly quotes/apostrophes (and vice versa) in the current selection or file.

Downloads

14

Rating

5.0 / 5 (1)

Version

1.0.0

Last updated

May 04, 2026

A VS Code extension that converts between straight (", ') and curly (“, ”, ‘, ’) quotes and apostrophes in body text, markdown, and prose.

Commands

All three commands operate on the active editor's selection. If no text is selected, they format the entire file.

Command Behavior
Prose Quotes: Curl Converts straight quotes/apostrophes to the correct curly variant. Curly characters are left alone.
Prose Quotes: Straighten Converts curly quotes/apostrophes back to straight. Straight characters are left alone.
Prose Quotes: Toggle If the text contains any straight quotes/apostrophes, curls everything. Otherwise straightens everything. Mirrors the bold/italic toggle behavior in text editors.

Direction rules

When curling:

  • A " becomes “ (open) when it follows the start of the document, whitespace, or an opening bracket ((, [, {) or already-emitted opening curly. Otherwise it becomes ” (close).
  • A ' follows the same rule, becoming ‘ (open) or ’ (close) — which means apostrophes inside words like don't always become don’t.

Keybindings

No default keybindings are registered to avoid conflicts. To assign your own:

  1. Open Preferences: Open Keyboard Shortcuts (Ctrl+K Ctrl+S / Cmd+K Cmd+S).
  2. Search for Prose Quotes.
  3. Bind proseQuotes.curl, proseQuotes.straighten, and proseQuotes.toggle to whatever keys you prefer.

Development

pnpm install
pnpm run watch       # esbuild watch mode
# Press F5 in VS Code to launch the Extension Development Host
pnpm test            # run the unit test suite
pnpm run typecheck   # tsc --noEmit

Related extensions