davidvarga / MBeautifier

MBeautifier is a MATLAB source code formatter, beautifier. It can be used directly in the MATLAB Editor and it is configurable.
GNU General Public License v3.0
489 stars 77 forks source link

Matrix alignment #114

Open plkinon opened 2 years ago

plkinon commented 2 years ago

Dear all, I want my matlab code to align corresponding columns, e.g.

tang = [eye(n),   -h * IM,      zeros(n, m); ...
        zeros(n), eye(n),       h * G_n'; ...
        G_n1,     zeros(n, m)', zeros(m)];

Is there an easy way to introduce this functionality to MBeautifier?

Thanks in advance Philipp

RodneyRichardson commented 9 months ago

WORKAROUND: Disable formatting around the statement using MBD:Format:Off and re-enable with MDB:Format:On