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 Center および File ExchangeDynamic System Models についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by