How can I change the behavior of the commenting function so that the location of the % respect the indentation?
조회 수: 1 (최근 30일)
이전 댓글 표시
When I comment the line 5 using ctrl+R> or clicking on the "comment" icon:

I get:

I would like to have instead:

How to achieve that?
댓글 수: 0
답변 (1개)
Mischa Kim
2014년 2월 3일
Franck, probably the easiest way is to use smart indenting: select all text (CTRL + a) and then use CTRL + i.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!