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

Using the same length of related variable names is definitely a good thing.

Just lining things up neatly helps spot bugs.

It’s the one thing I don’t like about strict formatters, I can no longer use spaces to line things up.



I've never yet seen a linter option for assignment alignment, but would definitely use it if it were available


AlignConsecutiveAssignments in clang-format might be the right fit.

https://clang.llvm.org/docs/ClangFormatStyleOptions.html


I know prettier can isolate a code section from changes by adding comments. And I think others can too.




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

Search: