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?

 채택된 답변

Francesco Marini
Francesco Marini 2017년 11월 30일

25 개 추천

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

댓글 수: 8

Douglas McKnight
Douglas McKnight 2018년 7월 19일
This was the answer that actually helped me find that checkbox! Thanks.
Isabella Osetinsky-Tzidaki
Isabella Osetinsky-Tzidaki 2018년 11월 22일
Thank you a lot.
Eliot Mayer
Eliot Mayer 2019년 11월 22일
Thank you very much! The automatic comment wrapping has been annoying me, so I finally Googled and found this solution.
Nikolaus Koopmann
Nikolaus Koopmann 2020년 5월 18일
thanks
Abdelrahman Helaly
Abdelrahman Helaly 2020년 10월 6일
편집: Walter Roberson 2021년 1월 14일
Thank you
Martin Hawes
Martin Hawes 2021년 11월 7일
편집: Martin Hawes 2021년 11월 7일
In newer version of MATLAB the sub-section is:
Preferences > MATLAB > Editor/Debugger > Language > Comment formating
Kurt
Kurt 2023년 5월 11일
The vertical line is still there at column 75.
Steven Lord
Steven Lord 2023년 5월 12일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (2개)

Johannes Kalliauer
Johannes Kalliauer 2021년 6월 15일

5 개 추천

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

2 개 추천

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

댓글 수: 2

Jacob Grayson
Jacob Grayson 2015년 9월 25일
actually i looked through all 20+ tabs of preferences but missed it. thanks!
Stephen Nelson
Stephen Nelson 2020년 8월 27일
편집: Walter Roberson 2021년 1월 14일
See below for actual instructions

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Entering Commands에 대해 자세히 알아보기

제품

태그

질문:

2015년 9월 25일

댓글:

2023년 5월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by