Is it possible to change color of executed codes for easily identify dead codes
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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.
2 Kommentare
Antworten (1)
Walter Roberson
am 1 Mai 2024
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1683576/image.png)
There is no coloration, but the editor throws up a warning for unreachable code.
2 Kommentare
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!