how to make comments *not* wrap?

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?

 Respuesta aceptada

Francesco Marini
Francesco Marini el 30 de Nov. de 2017

25 votos

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

8 comentarios

Douglas McKnight
Douglas McKnight el 19 de Jul. de 2018
This was the answer that actually helped me find that checkbox! Thanks.
Isabella Osetinsky-Tzidaki
Isabella Osetinsky-Tzidaki el 22 de Nov. de 2018
Thank you a lot.
Eliot Mayer
Eliot Mayer el 22 de Nov. de 2019
Thank you very much! The automatic comment wrapping has been annoying me, so I finally Googled and found this solution.
Nikolaus Koopmann
Nikolaus Koopmann el 18 de Mayo de 2020
thanks
Abdelrahman Helaly
Abdelrahman Helaly el 6 de Oct. de 2020
Editada: Walter Roberson el 14 de En. de 2021
Thank you
Martin Hawes
Martin Hawes el 7 de Nov. de 2021
Editada: Martin Hawes el 7 de Nov. de 2021
In newer version of MATLAB the sub-section is:
Preferences > MATLAB > Editor/Debugger > Language > Comment formating
Kurt
Kurt el 11 de Mayo de 2023
The vertical line is still there at column 75.
Steven Lord
Steven Lord el 12 de Mayo de 2023
Under Editor/Debugger preferences, in the Display section, unselect "Right-hand text limit".
See this documentation page for more information about the various Editor/Debugger preferences.

Iniciar sesión para comentar.

Más respuestas (2)

Johannes Kalliauer
Johannes Kalliauer el 15 de Jun. de 2021

5 votos

The answer (from 2015) of @Jon now with screenshot:
Preferences -> MATLAB -> Editor/Debugger -> Language -> Comment formating
Uncheck "Wrap comments automatically while typing".
Jon
Jon el 25 de Sept. de 2015

2 votos

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

2 comentarios

Jacob Grayson
Jacob Grayson el 25 de Sept. de 2015
actually i looked through all 20+ tabs of preferences but missed it. thanks!
Stephen Nelson
Stephen Nelson el 27 de Ag. de 2020
Editada: Walter Roberson el 14 de En. de 2021
See below for actual instructions

Iniciar sesión para comentar.

Categorías

Más información sobre Entering Commands en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 25 de Sept. de 2015

Comentada:

el 12 de Mayo de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by