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

64 次查看(过去 30 天)
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 个)

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