Where is your preferred column width?

Chen Lin 홍보했습니다
설문은 2026년 6월 30일에 종료됩니다.

Image Analyst
Image Analyst 2026년 6월 10일 19:51
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.
Sewale
Sewale 2026년 6월 10일 12:34
GOOD
Matt J
Matt J 2026년 6월 6일 13:54
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.
dpb
dpb 2026년 6월 4일 17:59
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.
Stephen23
Stephen23 2026년 6월 4일 2:35
goc3
goc3 2026년 6월 2일 23:26
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.
Rik
Rik 2026년 6월 3일 10:38
I can imagine wanting it at 0 to essentially hide the line, but 1 character is an odd choice to me. I'm more surprised that the cap is only 160. I would have expected it to be much higher than double the default (or no cap to exist at all).
Did you test whether the limit also exists if you try to set it by code?
goc3
goc3 2026년 6월 3일 19:13
That setting does not need to accept zero, as there is a toggle to turn off display of that line.
I was also surprised that the cap was 160; I would have expected 200 or 300.
I did not test setting that limit programmatically.

태그

아직 태그를 입력하지 않았습니다.