Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>FormatTXTNew to Visual Studio Code? Get it now.
FormatTXT

FormatTXT

Joshua Bascos

|
36 installs
| (0) | Free
Format your text files with smart line width control and structure preservation
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

FormatTXT

A powerful VS Code extension that formats text while intelligently preserving document structure and spacing patterns.

Features

  • Smart Line Width Control: Format text to any desired line width
  • Structure Preservation:
    • Maintains document sections (---)
    • Keeps block separators (--)
    • Preserves list formatting
  • Intelligent Formatting:
    • Automatic URL detection and preservation
    • Header and short line retention
    • Original spacing pattern maintenance
    • Smart paragraph handling

How to Use

Format Entire File

  1. Press Ctrl + Shift + P to open Command Palette
  2. Type "FormatTXT" and select
  3. Enter desired line width (default: 90)
  4. Press Enter to format

Note: Non-.txt files require confirmation

Format File Demo

Document Structure

Section Markers

Use --- to separate major sections

Block Separators

Use -- to separate blocks within sections

Lists

  • Starts with -
  • Preserves indentation
  • Maintains list structure

Requirements

  • VS Code 1.96.0 or higher

License

MIT License - see LICENSE file for details

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