Alternative Matlab editor with lint

A key strength of Visual Studio Code editor is the high-quality plugins available. Xavier Hahn’s Matlab plugin uses Matlab’s mlint command-line utility to lint code in the VS Code editor. The lint is shown as squiggle underlines with hover messages on the detected code issues.

Another key feature provided for Matlab .m code is Go to Definition that allows clicking on a function name and automatically opening to the location where the function is defined, even in another file.


There is a bit of manual setup needed, in VS Code preferences, to set “matlab.mlintpath” to the full path to the mlint executable. This path would be like “c:/Program Files/MATLAB/R2020a/bin/win64/mlint.exe”.

Recursively lint directory tree of Matlab code