Effacer les filtres
Effacer les filtres

Commenting Code inside for loop. Orientation Issue

3 vues (au cours des 30 derniers jours)
atharva aalok
atharva aalok le 26 Oct 2021
Commenté : atharva aalok le 26 Oct 2021
Normal Comment:
% my_var = 20
Commenting using Ctrl+R after selecting whole for loop:
% for i = 1:10
% disp('This is not good :(');
% end
Commenting each line one by one
% for i = 1:10
% disp('This is not good :(');
% end
Is there a way to select the whole for loop and using Ctrl+R comment like in the last case?
Many times when the for loop is large or 2 or 3 times nested the second commenting style really messes up the orientation and look of the code.

Réponse acceptée

Matt J
Matt J le 26 Oct 2021
No, but enhancement requests for this have been submitted (by me at least).
  1 commentaire
atharva aalok
atharva aalok le 26 Oct 2021
Great to hear! Hopefully they will implement this.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Dynamic System Models dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by