Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>LaTeX Sentence FormatterNew to Visual Studio Code? Get it now.
LaTeX Sentence Formatter

LaTeX Sentence Formatter

Yihong Zhang

|
3 installs
| (0) | Free
Formats text so each sentence starts on a new line, and non-sentence punctuation starts the next word on a new indented line
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

LaTeX Sentence Formatter

A VS Code extension that formats prose (especially LaTeX) so each sentence and clause starts on its own line, making diffs cleaner and structure more readable.

Formatting rules

  • Sentence-ending punctuation (. ! ?) — the next sentence starts on a new line at the same indentation level.
  • Mid-sentence punctuation (, ; :) — the next word starts on a new line indented by one extra space.
  • Existing indentation (e.g. inside a proof or figure environment) is preserved automatically.

Example

Input:

Similarly, we study vectorizing transformations for tropical recurrences, for time-varying recurrences, all of which are derived from algebraic reasoning.

Output:

Similarly,
 we study vectorizing transformations for tropical recurrences,
 for time-varying recurrences,
 all of which are derived from algebraic reasoning.

Usage

Action Keybinding Alternative
Format selection Ctrl+Shift+Alt+F / Cmd+Shift+Alt+F Right-click → Sentence Formatter: Format Selection
Format document Ctrl+Shift+Alt+D / Cmd+Shift+Alt+D Right-click → Sentence Formatter: Format Document

Select the text you want to reformat and press the keybinding. When no text is selected, the document command formats the entire file.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft