How can I reformat code in MATLAB editor? Other IDEs usually have reformat or format option that arrange position of written codes. Does editor of MATLAB have it? I use MATLAB R2013a
Popular Answers (1) To improve readability of matlab code or any type of code it should be represented in proper way with proper spacing from left side. To do this firstly select entire code you can do it by using 'ctrl+a' then press 'ctrl+i' which will arrange your code in proper way.
On the Home tab, in the Environment section, click Preferences. Select MATLAB > Command Window, and then choose a Numeric format option.
I have created a minimalist, configurable MATLAB source code formatter, which can be used directly in the MATLABEditor.
You can find it on GitHub: MBeautifier on GitHub
Main features:
It can be used in Matlab versions starting from R2013b.
Deployment and configuration are described on GitHub (link above).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With