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

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?

Respuestas (1)

Franck, probably the easiest way is to use smart indenting: select all text (CTRL + a) and then use CTRL + i.

Categorías

Más información sobre Environment and Settings en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 3 de Feb. de 2014

Respondida:

el 3 de Feb. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by