- Go to the GitHub repo of MBeautifier and clone/download it to anywhere as a library/package for MATLAB.
- Add the root directory of MBeautifier to the MATLAB path, e.g. on MacOS:
- Add the folder
/path/to/MBeautifier
to the beginning of the search path on a UNIX® system:
oldpath = path;
path('/path/to/MBeautifier',oldpath)
- Perform formatting on the currently active page of MATLAB Editor. Command:
MBeautify.formatCurrentEditorPage()