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 CenterFile Exchange에서 Desktop에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by