MATLAB: How to put a tab on code

tab

Hi there,
I am wondering how I can put a tab in codes. When I click tab key on keyboard, it just makes 4 spaces not a tab on codes.
Thank you for your help in advance.

Best Answer

In the Editor/Debugger preferences deselect the "Tab key inserts spaces" option in the Tab group of preferences.