Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I like 80 columns, I can tolerate 100 or 120. I get really annoyed with formatting standards, JS/TS in particular that waste a whole line for a closing brace. Standard aspect has screens more limited vertically than horizontally.

When dealing with tabular data, particularly test data, I find most formatting lacking. I want to be able to specify blocks that align on the decimal point. Especially when dealing with lists of dicts. This makes reading test fixtures much more intuitive than default indentation styles.

Has anyone seen a formatter where you can specify a block be formatted in that manner?

  [{'a':  3.89, 'b':  10},
   {'a': 12.3,  'b': 233}]
instead of

  [{'a': 3.89,
    'b': 10},
   {'a': 12.3,
    'b': 233}]


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: