MBeautifier icon indicating copy to clipboard operation
MBeautifier copied to clipboard

MBeautifier is a MATLAB source code formatter, beautifier. It can be used directly in the MATLAB Editor and it is configurable.

Results 30 MBeautifier issues
Sort by recently updated
recently updated
newest added
trafficstars

As shown in figure below, ![image](https://user-images.githubusercontent.com/7608449/160346362-66ff6ee1-6e9f-4c3b-bc98-0df78e2fca77.png)

![微信截图_20220415101830](https://user-images.githubusercontent.com/45525618/163507544-2be97ea4-7162-4577-90a9-3cc27e843fff.png) ![微信截图_20220415101853](https://user-images.githubusercontent.com/45525618/163507550-c792e865-970d-4b34-819b-ae100f86e974.png) Executing in a live script clears all text,comments are fine

Given an open editor page with only one statement and no newline, I'd expect `EndingNewLineCount=1` to add a newline at the end of the file (please correct me if that's...

Hello, I found a problem or bug when i use your tool to format my code. The space will be automatically generated on both sides of the "\" or "/"...

Dear all, I want my code to align equal signs of subsequent lines, e.g. ``` a = b; longerVariable = c; ``` Is this functionality available? Best Philipp

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,...

Hi, thanks for keeping up the good work on this useful tool! One concerning the arguments block: The code ``` arguments varname (2, 2) double end ``` is changed into...

When using `MBeautify.formatEditorSelection()`, after formatting the selected text, [MBeautify.m#L227](https://github.com/davidvarga/MBeautifier/blob/1a57849e44662f56271dc0eefa746855698a719a/MBeautify.m#L227) then indents the entire editor page, rather than just the selection. I.e. the following code is called: ``` MBeautify.indentPage(currentEditorPage, configuration); ```...

I use this as part of a pre-commit git hook and also sometimes in large batches of files, so it would be nice to have the option of passing in...

First of all, thank you for this project! Until yesterday I was not aware that such a formatter exists and spent some time formatting things manually. This project really makes...