Matlab livescript tab size

조회 수: 15(최근 30일)
alpedhuez 2020년 11월 23일
편집: vj 2021년 5월 17일
I would like to know how one can set the tab and indent size of livescript. I see
I would like to know whether there is an update on this issue.
  댓글 수: 3
alpedhuez 2020년 11월 26일
Thnak you. 2020a

댓글을 달려면 로그인하십시오.


Prabhanjan Mentla
Prabhanjan Mentla 2020년 11월 27일
편집: Prabhanjan Mentla 2020년 11월 27일
Indent and tab size in MATLAB 2020a for livescript are working as expected.
You can check this by following below steps
  • Go to Preferences/MATLAB Editor/Debugger Tab Preferences
  • Set Indent size and tab size to 10 or above (to differentiate clearly).
  • Create a new live script file and add this code if a==1 and hit enter.
Vary the indent sizes to get better understanding. Likewise, you can verify for tab option also.
Hope this helps.
  댓글 수: 5
vj 2021년 5월 17일
I have the problem, that the indentation does not work. (On R2021a)
For example, if I type if a == 1 and then hit enter, the cursor is going to the beginning of the next line instead of indenting the next line.
If I mark this line and hit CTR+I (for Smart-Indent), it works. But I want to auto-indent the new line WHILE typing.
In the App Designer or in normal scripts it works as known.
I checked the Preferences with my colleague but we do not find a difference although the indentation works on his computer with the same Matlab-Version.
Preferences Language
Do you have still an idea what the reason is?

댓글을 달려면 로그인하십시오.


Community Treasure Hunt

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

Start Hunting!

Translated by