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
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 个)

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

产品


版本

R2008a

Community Treasure Hunt

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

Start Hunting!

Translated by