davidvarga / MBeautifier

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a setting to add (or remove) parens in if/elseif/switch/case/while/for statements

cszczepaniak opened this issue · comments

You can write keyword blocks with or without parentheses:

if (true)
end

vs.

if true
end

A nice feature would be to control whether or not to add parentheses to these expressions and also independently set this for each possible keyword that supports this (if, elseif, switch, case, while, for, etc.)

I'll evaluate the overall difficulties regarding this request, but at the first sight it is doable :)