How can I change the behavior of the commenting function so that the location of the % respect the indentation?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
When I comment the line 5 using ctrl+R> or clicking on the "comment" icon:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/155939/image.png)
I get:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/155941/image.png)
I would like to have instead:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/155942/image.png)
How to achieve that?
0 Kommentare
Antworten (1)
Mischa Kim
am 3 Feb. 2014
Franck, probably the easiest way is to use smart indenting: select all text (CTRL + a) and then use CTRL + i.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Environment and Settings finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!