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

Text Formatter

Vineel Pusarla

|
1 install
| (0) | Free
Format selected/current file values into comma-separated, quoted comma-separated, SQL IN, or JSON array output without modifying the source file.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Line Output Formatter VS Code Extension

Formats values from the active editor or selected text without changing the original file.

Features

Input example:

123
124
125

Or:

123124125

Outputs:

123, 124, 125
'123', '124', '125'

Also included:

IN ('123', '124', '125')
[
  "123",
  "124",
  "125"
]

How to run locally

  1. Open this folder in VS Code.
  2. Press F5.
  3. In the Extension Development Host window, open any text file.
  4. Run Line Formatter: Open Panel from Command Palette.
  5. Use the buttons to generate output.

Commands

  • Line Formatter: Open Panel
  • Line Formatter: Comma Output
  • Line Formatter: Comma + Quote Output
  • Line Formatter: SQL IN Clause Output
  • Line Formatter: JSON Array Output

Notes

  • If text is selected, only selected text is used.
  • If nothing is selected, the full active file content is used.
  • Source file is not modified.
  • Output opens in a separate editor window/panel.
  • If input is only digits and its length is divisible by 3, it splits every 3 digits. Example: 123124125 becomes 123, 124, 125.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft