Align assignments at the "=" sign
philipplk opened this issue · comments
Dear contributors,
I am happily using MBeautifier! Just one thing strikes me:
I want to align assignments at the "=" sign to make code more readible, e.g.
Variable1 = 1;
str = 'Hello!';
Is this currently possible to do? If not, would it be easily implemented?
Bests
Philipp
Hi!
It is nearly impossible to do with the current implementation, but if you formatted the lines once, MBeautify can be instructed to skip the formatting for a section using Directives: https://github.com/davidvarga/MBeautifier#directives
In you example:
% MBeautifierDirective:Format:Off
Variable1 = 1;
str = 'Hello!';
% MBeautifierDirective:Format:On
will instruct MBeautifier to disable formatting for that section in the code.
I hope this help! :)
Hi!
Yes I saw this in the Readme file but those extra comments are not what I want, too.
Nevertheless: Thank you!