Closed yarick123 closed 4 years ago
The problem here is that the whole loop is written on a single line. The code formatter is not prepared for that situation. I'd be happy to take a pull request for a fix for that.
Just disabling the indentation makes the code formatting pointless.
Write the 'Loop' keyword on a single line of its own. Then the formatter will apply the correct indentation.
code like
is formatted to
As a solution I propose the patch https://github.com/hilkoc/vbaDeveloper/pull/44. It introduces a constant SIMPLIFIED_FORMAT, initialized with False by default. If it is set to True, the code formatting will be reduced just to trimming trailing spaces of each code line.