How to increase the portion reserved for writing in editor?

46 ビュー (過去 30 日間)
Explorer
Explorer 2013 年 10 月 6 日
コメント済み: James 2023 年 1 月 27 日
I want to increase size of left one portion but the line at the center as shown in screen shot is bounding me to go beyond it.

採用された回答

Image Analyst
Image Analyst 2013 年 10 月 6 日
Home->Preferences->Editor/Debugger->Display->Right-hand text limit.
  2 件のコメント
Explorer
Explorer 2013 年 10 月 6 日
Thank you.
James
James 2023 年 1 月 27 日
10 years later and still useful, love it.

サインインしてコメントする。

その他の回答 (1 件)

Jan
Jan 2013 年 10 月 6 日
This line does not limit the line length in the editor. It is just thought to remind the person to limit the text width to allow for an easier reading. Some years ago 72 characters have been considered to be optimal, but modern monitors allow to read 80 character lines fluently also. I would not moan, when a code uses 86 characters, but avoid worm lines, especially when important commands could be hidden for readers, who use the old-fashioned 4:3 monitors. Example:
disp('This is a dull example for a code line, which confuses during debugging!'); disp('Hy! I''m hidden!')
The 2nd disp is not visible on my laptop's screen and with standard debugging it is hard to find out, where the secret message is coming from. Therefore limiting the code width to 80 characters is a really good idea.

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by