필터 지우기
필터 지우기

is there a cmd which can justify a script at once?

조회 수: 1 (최근 30일)
Frederic Cleva
Frederic Cleva 2021년 3월 26일
편집: Frederic Cleva 2021년 3월 26일
Dear Matlab users,
I would like to knwo whether there is an option that put your script in "good shape".
What I mean is that when you write your script and you add the line starting with "if" there is a tab which is automatically applied. All the text up to the associated "end" will be accordingly "tabbed".
But if you add a comment in between then the wire is broken and the tab is restored to 0.
Or if you remove some lines containing if/end then what was connected to this removed if/end will not be restored to a normal position.
Do you knwo whether there is cmd which allow to justify the whole script at once?
Many thanks
Frederic

채택된 답변

Stephen23
Stephen23 2021년 3월 26일
편집: Stephen23 2021년 3월 26일
In the MATLAB editor:
  1. select the text you want to align (e.g. ctrl+a)
  2. press ctrl+i
  댓글 수: 2
Walter Roberson
Walter Roberson 2021년 3월 26일
Or select all of the text, and then click on the first of those icons shown in the "Ident" line
Frederic Cleva
Frederic Cleva 2021년 3월 26일
편집: Frederic Cleva 2021년 3월 26일
Many thanks Stephen, Walter
that was what I was looking for
Frederic

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 String에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by