MATLAB Answers

0

How can I change the behavior of the commenting function so that the location of the % respect the indentation?

Asked by Franck Dernoncourt on 3 Feb 2014
Latest activity Answered by Mischa Kim
on 3 Feb 2014
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 Comments

Sign in to comment.

Tags

Products

1 Answer

回答者: 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 Comments

Sign in to comment.