Where is your preferred column width?
Chen Lin
featured this
Poll will close on 30 Jun 2026
<80 characters
11%
80 characters
26%
100 characters
23%
120 characters
17%
>120 characters
13%
something else (comment below)
10%
127 votes
8 Comments
Time DescendingI don't like the MATLAB editor automatically splitting lines for me or putting a vertical line down the right column so I usually set those two preference settings high, like 222. If it's not, it might automatically split the line at 75 characters but I only had one word to add and I want the comment to be all on the same line with 80, not one line with 75 and another line with 5 characters. So I essentially turn it off. I'll split the lines myself, where I want, manually thank you.
GOOD
Column width for what? The Editor? For me that depends on the number of open files. I like it to be wide enough to see all tabs.
I no longer have a predetermined fixed line length (even Fortran now has gone to free format) although I find that with high res monitors and reasonable font/size about 120 charachters fits nicely leavig room on the display for the base desktop to also be accessible (to get to the command window for trying out something, say).
Given that real estate is now available my coding style has evloved that code itself is probably 90% <60 characters on a line but comments are now (vertically aligned) at the end of line.
I just learned (by testing it in R2024b and R2025a) that MATLAB has a cap for this option: 160.
On the other hand, there is no minimum, other than that it has to be a positive number. I am not sure why having a column delimiter at one character would be useful, but it is allowed.
Sign in to participate