Automatic Comment Wrapping and Wrap Comment command
显示 更早的评论
When adding a comment at the end of a line of code, R2012b will not automatically wrap the comment when it reaches the "maximum column width" setting in preferences. It works fine for a line that is all comment.
The "wrap comment" command also does not work on the comment after a bit of actual code.
Am I expecting too much?
2 个评论
Richard Downey
2016-4-13
Nobody has an answer for this?
Image Analyst
2016-4-13
Probably because no one is using R2012b anymore. We've all upgraded by now.
回答(1 个)
Image Analyst
2014-2-11
1 个投票
That's because it's like you said - it's for comments. At least under R2013a it's under Editor/Debugger->Language->Comment formatting. If you want code, look at the Editor/Debugger->Display->right hand text limit. What is that set for for you? How does it differ from the number for the comment formatting? Are they different or the same number?
类别
在 帮助中心 和 File Exchange 中查找有关 Entering Commands 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!