How can I undo indenting after terminating a loop in my MATLAB file in MATLAB 7.6 (R2008a)?
19 次查看(过去 30 天)
显示 更早的评论
I have written a long for loop in my MATLAB file script. Now I want to terminate the enclosing loop (delete FOR and END statements) and undo the indenting of the enclosed code (align the code to the left).
I would like to do this without manually deleting the white space at the beginning of every line.
采纳的回答
MathWorks Support Team
2010-1-26
You can manually apply smart indenting to selected lines select the lines and then select Smart Indent from the Text menu, or right-click and select it from the context menu (CTRL+I).
For further details about manual and automatic indenting please refer to the 'Indenting' section in the MATLAB documentation or run the following command in MATLAB 7.6 (R2008a):
web([docroot '/techdoc/matlab_env/f2-58922.html'])
0 个评论
更多回答(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!