how to make comments *not* wrap?

177 views (last 30 days)
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?

Accepted Answer

Francesco Marini
Francesco Marini on 30 Nov 2017
Go to Preferences -> Editor -> Language
Under 'Comment formatting', uncheck 'Wrap comments automatically while typing'
  6 Comments
Martin Hawes
Martin Hawes on 7 Nov 2021
Edited: Martin Hawes on 7 Nov 2021
In newer version of MATLAB the sub-section is:
Preferences > MATLAB > Editor/Debugger > Language > Comment formating

Sign in to comment.

More Answers (2)

Johannes Kalliauer
Johannes Kalliauer on 15 Jun 2021
The answer (from 2015) of @Jon now with screenshot:
Preferences -> MATLAB -> Editor/Debugger -> Language -> Comment formating
Uncheck "Wrap comments automatically while typing".

Jon
Jon on 25 Sep 2015
Did you even look through the Editor options in Preferences? There is a button you can uncheck to turn it off.
  2 Comments
Stephen Nelson
Stephen Nelson on 27 Aug 2020
Edited: Walter Roberson on 14 Jan 2021
See below for actual instructions

Sign in to comment.

Categories

Find more on Environment and Settings in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by