MATLAB: Indent a block of code

indent block cade

How do you indent a block of code? For example if you enclose a block of code in an if statement, and want to indent said block.

Best Answer

In the MATLAB editor, you should automatically get identation of an if statement.
Other than that, highlight the text and do Text -> Small Ident, or Text -> Increase Ident