Weird question about the editor...
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Spaceman
am 9 Mär. 2024
Kommentiert: Spaceman
am 8 Apr. 2024
So this might be insanely daft of me to ask...
But most of my code writing takes place in the editor. When writing code/copy pasting stuff into a code comment I can't help but notice that thin line that runs veritcally down in the editor, over about 1/3 of the total lenth of the screen to the right of the code. What is this line? Why does it sometimes word-wrap my comments when it touches the line, and sometimes doesnt? Just a curious cat meowing into the midnight under the moonlight.
8 Kommentare
DGM
am 21 Mär. 2024
To be fair, I've changed my formatting style a number of times over the years, but I never fail to think that I've got it nailed down tight. It's almost like I don't know what I'm doing. :)
Akzeptierte Antwort
the cyclist
am 9 Mär. 2024
The line you are talking about is referred to as the "right-hand text limit". You can adjust some properties for it under MATLAB -> Settings -> Editor/Debugger -> Display. As I recall that line is just a visual reference, with no impact on wrapping.
There is also "Comment Formatting" under MATLAB -> Settings -> Editor/Debugger -> Language. That does affect wrapping. (It is a bit smart in that it won't split words in half, etc.)
I believe these are both set to 75 initially, but you can set them independently.
3 Kommentare
the cyclist
am 10 Mär. 2024
I have the "Display" value at 125, and the "Language" setting at 75. I can't remember if those are just the default, or I changed them.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!