Commenting Code inside for loop. Orientation Issue

조회 수: 3 (최근 30일)
atharva aalok
atharva aalok 2021년 10월 26일
댓글: atharva aalok 2021년 10월 26일
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.

채택된 답변

Matt J
Matt J 2021년 10월 26일
No, but enhancement requests for this have been submitted (by me at least).
  댓글 수: 1
atharva aalok
atharva aalok 2021년 10월 26일
Great to hear! Hopefully they will implement this.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Dynamic System Models에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by