This image illustrates the function indenting formats.
NoteIndenting preferences are not supported for TLC, VHDL, or Verilog and are not
available in MATLAB Online
Regardless of whether you apply indenting automatically or manually, you can move
selected lines further to the left or right, by doing one of the following:
- On the Editor tab, in the Edit section, click , , or. For live scripts and
functions, this functionality is available on the Live Editor tab, in the Code section. - Pressing the Tab key or the Shift+Tab key, respectively.
This works differently if you select the Editor/Debugger Tab preference for Emacs-
style Tab key smart indenting—when you position the cursor in any line or select a
group of lines and press Tab, the lines indent according to smart indenting practices.
Improve Code Readability