How to Wrap Code in matlab editor in matlab2018b

How to Wrap code in matab editor for matlab 2018b.
i was able to find option for folding comment but not for code.

1 Kommentar

Mathworks does not provide a facility for that.
Perhaps someone has written code for that; I believe it should be possible, but I do not at the moment recall seeing code for that posted.
It can be a bit tricky to figure out whether you are inside a quoted string at any point (because if you are, you cannot wrap without it being a nuisance of string concatenation), but I seem to remember not long ago Jan indicated he had code for that.

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Deanna Yancey
Deanna Yancey am 9 Nov. 2020
Bearbeitet: Walter Roberson am 9 Nov. 2020

0 Stimmen

3 Kommentare

My interpretation was that the user had existing code that they wanted to wrap to a maximum width (with appropriate continuation marks being inserted.)
Thank you both for suggestions
Andrew Bridgman
Andrew Bridgman am 25 Mär. 2021
Bearbeitet: Andrew Bridgman am 25 Mär. 2021
Ideally there should be an option to "visually" wrap around. So the code isn't actually wrapped using "..." as mentioned in another comment here. Just so all your code is in the width of your screen. This would be really good feature for faster coding.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange

Produkte

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by