Is it possible to change color of executed codes for easily identify dead codes

조회 수: 1 (최근 30일)
Hi everyone:
I think when taking over large projects, we've all encountered the experience where there are sections of code left behind by predecessors that are never executed. However, due to the sheer number of lines of code and the disorganized structure, it's often difficult to pinpoint the locations of dead code. So, I wanted to ask if there's a feature in MATLAB that can colorize executed code, making it easy for us to identify dead code by recognizing sections that remain uncolored.

답변 (1개)

Walter Roberson
Walter Roberson 2024년 5월 1일
There is no coloration, but the editor throws up a warning for unreachable code.
  댓글 수: 2
JHEWEI
JHEWEI 2024년 5월 2일
This feature only works for code outside the function, but I need a comprehensive review result.

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

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by