How do I apply smart indenting to a sub-function in MATLAB 7.7 (R2008b)?
1 view (last 30 days)
Show older comments
I have created a MATLAB function which contains sub-functions. If I select all the text in the file or just the sub-functions and right click and select 'Smart Indent' from the context menu, smart indenting does not occur for the sub-functions.
Accepted Answer
MathWorks Support Team
on 22 Jan 2010
To apply smart indent to a subfunction in MATLAB 7.7 (R2008b), click File->Preferences->Editor/Debugger->Language and select 'Indent all functions' under 'Function indenting format'.
0 Comments
More Answers (0)
See Also
Categories
Find more on Workspace Variables and MAT Files in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!