Notepad++ CSVLint
- Install CSVLint Plugin (Plugins > Plugins Admin... > CSV Lint)
- Open CSV file. Or manually set Language > CSVLint. This will give you nicely colored output.
To reformat do this:
- Open lower pane: Plugins > CSV Lint > CSV Lint Window.
- Click the Reformat button. Check the box Align vertically (not recommended). -- This may screw up your data, so think twice before clicking OK.
Reformatted output:
FYI: You can use the Trim all values checkbox to reformat back.
If you want to try this yourself: Here is my sample input:
TIMESTAMP_START,TIMESTAMP_END,TA_ERA,TA_ERA_NIGHT,TA_ERA_NIGHT_SD,TA_ERA_DAY,DA_ERA_DAY_SD,SW_IN_ERA,HH,DD,WW-YY,SW_IN_F,HH
19890101,19890107,3.436,1.509,2.165,6.134,2.889,100.233,283.946,1.373,99.852,2.748,1.188
19890108,19890114,3.814,2.446,2.014,5.728,2.526,91.708,286.451,1.575,100,100.841,0.742
Notepad++ plugins are fragile. This worked for me on Notepad++ v8.4.2 (32-bit)
. So if this doesn't work you, then consider switching from 64-bit to 32-bit and also downgrading to this exact version and bit-ness.
Related: CSVLint demo video, CSVLint Documentation on GitHub