How do i remove wide indents in MATLAB script editor ?

I am facing the wide indent problem in script editor.
Even though i apply the smart indent, it still shows a large indent of the statements
I tried preferences options, but the problem still persists.
However, it does not happen when i open a new file ?
When i click on wrap comments, it freezes Matlab !!! nothing works,

댓글 수: 2

Jan
Jan 2018년 11월 22일
Please explain the details:
  • What does "I apply the smart indent" exactly mean?
  • How does the "large indent" look like? We cann guess, what you see.
  • Which preferences options did you set?
  • What does "open a new file" mean - create or open an existing file?
  • What does "freeze" mean exactly?
  • Which Matlab/OS versions are you using?
  • Did it work before any specific update and/or installation?
  • "Nothing works"?!
VBBV
VBBV 2018년 11월 22일
Smart indent button available in matlab editor
Large indent is like in the attached snapshots in the file (see the presentation1.pdf) file
Open a new file .. yes create or open new script file
Freeze is ... mouse and keyboard does not respond
MATLAB 2018b
Nothing works, also means Freezed ... neither keyboard, nor the mouse respond
update or installation ... not sure about it

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

 채택된 답변

Image Analyst
Image Analyst 2018년 11월 22일

3 개 추천

Type control-a (to select all code), then control-i (to fix the indenting). You can set up how many spaces a tab corresponds to in the preferences.
If things are still not aligned properly then you have probably forgotten an "end" somewhere.

댓글 수: 3

VBBV
VBBV 2018년 11월 22일
Thank you, the problem is resolved ..
Jan
Jan 2018년 11월 22일
편집: Jan 2018년 11월 22일
Fine. What was the problem? How did you fix it?
VBBV
VBBV 2018년 11월 23일
In the command window, the preferences option, indenting tab, 'all nested functions' choice was selected. therefore, the statements were being wide indented to the right. when i pressed Ctrl + i, it was reset to default (left)

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Entering Commands에 대해 자세히 알아보기

제품

릴리스

R2018b

질문:

2018년 11월 22일

댓글:

2018년 11월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by