How do I disable the automatic line wrapping in the editor?

조회 수: 80 (최근 30일)
Doug Ivers
Doug Ivers 2017년 5월 5일
댓글: DGM 2022년 6월 22일
In the prefs, I set the "right-hand text limit" to 150, but the editor still auto wraps at about half that.

채택된 답변

Adam
Adam 2017년 5월 5일
Do you mean comments? Code doesn't auto-wrap at all as far as I am aware
There is another under Editor/Debugger -> Language -> Comment formatting
that controls the wrapping of comments in code.
  댓글 수: 1
DGM
DGM 2022년 6월 22일
@Doug Ivers Comment-as-answer moved here:
Yes, that's what I needed. Thanks.

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

추가 답변 (1개)

André Novaes
André Novaes 2022년 6월 21일
On Matlab Online:
Choose HOME tab > Preferences > Editor/Debugger > Display > Right-hand text limit > Placement (change the number of 'columns').
  댓글 수: 1
DGM
DGM 2022년 6월 22일
The RH text limit is just a visual guideline. At least in older versions, it doesn't cause any wrapping. Wrapping is controlled under Language > Comment Formatting settings.
I don't know if that's still true in the new editor, though. If the online version is different, I'd imagine the new editor is also different.

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

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by