Pipe Table Formatter

Compatible with: IntelliJ IDEA PhpStorm WebStorm PyCharm RubyMine AppCode CLion GoLand DataGrip Rider MPS Android Studio
Dec 27, 2015
8 985
Small plugin for formatting text blocks that represents a table delimited by pipe (|). For example, can be used to format JBehave examples table.

Supported delimiters: pipe, comma, tab. When formatting, any of supported delimiters are replaced with pipe.

Select text in the editor or place caret inside a table and choose action "Pipe Table" -> "Format" in Code menu or in editor popup menu.

Download plugin

Recent change notes

Version 0.5.0
  • Preserves comment in row commented out with "|--"
  • Format Without Outer Pipes action is replaced with Format Preserving Outer State - it preserves indentation and presence/absence of leading/trailing pipes
Version 0.4.2
  • Pipe is treated as primary delimiter - if table contains pipe any other delimiter is ignored
Version 0.4.1
  • Format All Tables action formats only tables delimited with pipe, ignoring tables delimited with comma and tabulation
Version 0.4
  • New action: format all tables in the text
Version 0.3.1
  • New action: format table without outer pipes
Version 0.3
  • Pipe Table actions are added to editor popup menu
  • New action: add column
  • New action: auto-select table without formatting
  • Bug fixes
Version 0.2.3
  • Fixed bug: plugin crashed when column has zero width (no values in the column)
Version 0.2.2
  • Don't mix delimiters when detecting and parsing table, i.e. if table delimiter is pipe then comma is not treated as a delimiter.
  • Support for tab delimiter
Version 0.2.1
  • Autoselect table around caret position
Version 0.2
  • Support for comma delimited tables (converting to pipe delimited)
  • Support for quoted values
Version 0.1
  • Formatting pipe delimited table to human readable representation