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

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

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)

Categories

Products

Release

R2008b

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!