intellij-csv-validator icon indicating copy to clipboard operation
intellij-csv-validator copied to clipboard

TSV doesn't respect .editorconfig tabsize

Open enerjazzer opened this issue 4 years ago • 1 comments

Looks like tsv files are displayed as tab size was 1 (at least in the diff windows), even if there is an .editorconfig setting with some other tabsize. If I change the extension to .txt the IDE correctly displays them with tabsize according to the .editorconfig setting (but, obviously, your plugin doesn't kick in).

(Ideally, of course, tsv should be displayed as 'column -t' does, with a flexible tab stops per column)

enerjazzer avatar Feb 19 '21 02:02 enerjazzer

The .editorConfig is generally acknowledged. However, some of the settings are fixed for CSV files on purpose, like never wrap any lines, enable tab character in general, etc. The tab size fixation to 1 character is done for the "tabularize" formatting, which doesn't work with variable value separator length.

SeeSharpSoft avatar Mar 23 '21 20:03 SeeSharpSoft