Vscode does an autowrap maintaining the indent. So you can have it at any number. I don’t get the 80 char width fanatics. I like long lines. I want my editor to format it based on my screen width. 80 breaks my flow.
That's great if you are working alone or on a team where everyone agrees on the same editor with the same auto-wrap feature. In a mixed environment, writing code that is only readable if people choose the same tools you prefer can be a bit rude.
80 Characters per Line Is a Standard Worth Sticking to Even Today
31–40 of 48 posts
Re: 80 Characters per Line Is a Standard Worth Sticking to Even Today
#32Re: 80 Characters per Line Is a Standard Worth Sticking to Even Today
#33100 seems like a good modern take to me.
Re: 80 Characters per Line Is a Standard Worth Sticking to Even Today
#34We also enforce this. Not for personal or aesthetic reasons, but to keep code reviewers sane and let them review code side-by-side (as many devs do) when they might not have an ultra-wide monitor available.
Re: 80 Characters per Line Is a Standard Worth Sticking to Even Today
#35Re: 80 Characters per Line Is a Standard Worth Sticking to Even Today
#36We also enforce this. Not for personal or aesthetic reasons, but to keep code reviewers sane and let them review code side-by-side (as many devs do) when they might not have an ultra-wide monitor available.
Unified diffs beat side-by-side the majority of the time IMO.
Re: 80 Characters per Line Is a Standard Worth Sticking to Even Today
#37We also enforce this. Not for personal or aesthetic reasons, but to keep code reviewers sane and let them review code side-by-side (as many devs do) when they might not have an ultra-wide monitor available.
Re: 80 Characters per Line Is a Standard Worth Sticking to Even Today
#38Earlier quoted context omitted.
Cold dead hands won't be writing any more unreviewable code.
You can fit 120 characters side-by-side on a 1080 monitor no problem (and I regularly do)
The font size will likely be increased during a code review, too, depending on how the code is presented to your team.
Re: 80 Characters per Line Is a Standard Worth Sticking to Even Today
#39We also enforce this. Not for personal or aesthetic reasons, but to keep code reviewers sane and let them review code side-by-side (as many devs do) when they might not have an ultra-wide monitor available.
Unified diffs beat side-by-side the majority of the time IMO.
Re: 80 Characters per Line Is a Standard Worth Sticking to Even Today
#40Earlier quoted context omitted.
That's great if you are working alone or on a team where everyone agrees on the same editor with the same auto-wrap feature. In a mixed environment, writing code that is only readable if people choose the same tools you prefer can be a bit rude.
That cuts both ways. The most comfortable combo of a display and font size leaves me at 70 characters per line, making anything more wrap awkwardly. It wouldn't be a stretch to say that XX-chars limit only works if everyone else has tools that work best with XX.