VS Code Extensions
L

LaTeX Sentence Formatter

by YihongZhang

Formats text so each sentence starts on a new line, and non-sentence punctuation starts the next word on a new indented line

Downloads

47

Rating

— (0)

Version

0.0.2

Last updated

May 18, 2026

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.

Related extensions