Where is your preferred column width?
Chen Lin
홍보했습니다
설문은 2026년 6월 30일에 종료됩니다.
<80 characters
13%
80 characters
27%
100 characters
20%
120 characters
17%
>120 characters
14%
something else (comment below)
8%
추천 수: 99
댓글 수: 8
시간 내림차순I 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.
참여하려면 로그인하세요