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 で Scripts についてさらに検索

製品

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by