Indent a block of code

3 ビュー (過去 30 日間)
Mohamed Jamal
Mohamed Jamal 2020 年 8 月 12 日
コメント済み: Mohamed Jamal 2020 年 8 月 12 日
Hi guys, is there a specific command (in keyboard) for matlab code identation?
for example lets assume that I wrote:
while i < length(rxBuffer) - 1
checksum = calcCRC(rxBuffer(i+1), checksum);
if i == intmax('uint8')
i = intmin('uint8');
else
i = i + 1;
end
end
how do I fix idenation and make the code more readable ..for example space between while loop and the inner statement(checksum) ..?
thanks alot
  1 件のコメント
Mohamed Jamal
Mohamed Jamal 2020 年 8 月 12 日
Hi, I was going to delete the question but for letting others know as I will keep the question for helping others.
To fix ident code blocks in matlab, just do on your keyboard CTR+A then CTR+I , thanks.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeDesktop についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by