Small IDEA plugin for formatting text blocks that represents a table delimited by pipe (|). For example, can be used to format JBehave examples table.
Thanks to Idris Ahmed ([idrisahmed251] (https://github.com/idrisahmed251)) and to Jesse Kuhnert ([jkuhnert] (https://github.com/jkuhnert)) for ideas to use comma and tab as delimeters.
- Formats block of text that represents a table: width of a column becomes constant from top to bottom by adjusting it to most wide value in the column.
- Supported delimiters: pipe, comma, tab.
- Any of supported delimiters, when formatting, are converted to pipe.
- If text is not selected explicitly - automatically detects start and end of a table on base of caret position.
- All tables in the editor can be formatted by one action
text like:
|Header 1|Header 2| |val1|val2|
or like:
Header 1,Header 2 val1,val2
is formatted to:
| Header 1 | Header 2 | | val1 | val2 |
From Plugin Repository: http://plugins.jetbrains.com/plugin/7550
- Select text that should be formatted or just put caret somewhere inside a table.
- Choose action
Pipe Table -> Format
in Code menu or popup menu.