MATLAB Answers

1

how to make comments *not* wrap?

Asked by Jacob Grayson on 25 Sep 2015
Latest activity Commented on by Eliot Mayer on 22 Nov 2019 at 19:30
how to make comments not wrap?
or alternatively, how can i move this annoying vertical gray line that insists on wrapping my comments to the next row? My code can have >80 characters/per line, must i always have this line through the middle of my code?

  0 Comments

Sign in to comment.

Tags

Products

2 Answers

Jon
Answer by Jon
on 25 Sep 2015
 Accepted Answer

Did you even look through the Editor options in Preferences? There is a button you can uncheck to turn it off.

  1 Comment

actually i looked through all 20+ tabs of preferences but missed it. thanks!

Sign in to comment.


Answer by Francesco Marini on 30 Nov 2017

Go to Preferences -> Editor -> Language
Under 'Comment formatting', uncheck 'Wrap comments automatically while typing'

  3 Comments

This was the answer that actually helped me find that checkbox! Thanks.
Eliot Mayer on 22 Nov 2019 at 19:30
Thank you very much! The automatic comment wrapping has been annoying me, so I finally Googled and found this solution.

Sign in to comment.