how to make comments *not* wrap?

조회 수: 150 (최근 30일)
Jacob Grayson
Jacob Grayson 2015년 9월 25일
댓글: Steven Lord 2023년 5월 12일
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일
Go to Preferences -> Editor -> Language
Under 'Comment formatting', uncheck 'Wrap comments automatically while typing'
  댓글 수: 8
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일
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일
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

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

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by