How to get editor to display tab char separated columns of a csv/tsv file as aligned

Answered

Is there a way to get Intellij to display (without changing tabs to spaces in the file) tab separated columns as columns aligned to the nearest tab width setting (ideally width is configurable, but anything reasonable, eg 4, would be good).

For example, tsv extension file containing the lines:

foo<tab>bar<tab>baz
some<tab>thing<tab>else

Appears (without altering the file's context) as something like:

foo     bar     baz
some thing else
0
2 comments

Try to use "Smart tabs" feature in code style for the language you use: https://i.imgur.com/ept7vor.png

See the documentation at https://www.jetbrains.com/help/idea/code-style-java.html

1

After uninstalling CSV plugin, smart tabs worked!  Thanks Konstantin Annikov

0

Please sign in to leave a comment.