How do I apply smart indenting to a sub-function in MATLAB 7.7 (R2008b)?

1 view (last 30 days)
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
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'.

More Answers (0)

Tags

No tags entered yet.

Products


Release

R2008b

Community Treasure Hunt

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

Start Hunting!