Removing vertical line from the script window

조회 수: 222 (최근 30일)
Rana Banik
Rana Banik 2019년 3월 21일
댓글: Daniel Donahue 2024년 2월 4일
This line/bar does not let me use the whole window for scripting. whenever my code reaches that line shown, code automatically goes to the next line.
  댓글 수: 1
Rana Banik
Rana Banik 2019년 3월 22일
이동: Dyuman Joshi 2024년 1월 9일
Thanks all, the issue solved.

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

채택된 답변

the cyclist
the cyclist 2019년 3월 22일
From the Command Window:
MATLAB --> Preferences --> Editor/Debugger --> Display
Increase the right-hand text limit.
  댓글 수: 1
Walter Roberson
Walter Roberson 2019년 3월 22일
That controls where the line is drawn, but does not control the point at which entry automatically goes to the next line.

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

추가 답변 (2개)

Walter Roberson
Walter Roberson 2019년 3월 22일
That only applies to comments, not to commands. But to turn it off, use Preferences -> Editor/Debugger -> Language, and turn off "Wrap comments automatically while typing"

Euan Hughes
Euan Hughes 2023년 1월 5일
The answers seemed a little incomplete, so for anyone else wondering you can move/ disable the line via:
Preferences -> Editor/Debugger -> Display -> Right-hand text limit
Once here you can remove the line entirely (I think that'll stop auto-wrapping of non-comments entirely) or change the column limit.
For some reason, this setting doesn't seem to apply to comments. To change the num of columns comments can span, you go to:
Preferences -> Editor/Debugger -> Language -> Comment formatting
Similarly, once there you can stop comments from wrapping entirely, change the column limit & dictate whether the limit starts from the beginning of the comment, or the line the comment it on itself.
  댓글 수: 1
Daniel Donahue
Daniel Donahue 2024년 2월 4일
Thanks for following up here.
The wrapping function doesn't seems to work for comments, I have to hit enter to get it to wrap down, and sometimes it automatically creates a % to keep it a comment, sometimes not...

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

카테고리

Help CenterFile Exchange에서 Entering Commands에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by