How can I change the behavior of the commenting function so that the location of the % respect the indentation?
1 次查看(过去 30 天)
显示 更早的评论
When I comment the line 5 using ctrl+R> or clicking on the "comment" icon:
I get:
I would like to have instead:
How to achieve that?
0 个评论
回答(1 个)
Mischa Kim
2014-2-3
Franck, probably the easiest way is to use smart indenting: select all text (CTRL + a) and then use CTRL + i.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!