rubberduck-vba / Rubberduck

Every programmer needs a rubberduck. COM add-in for the VBA & VB6 IDE (VBE).

Home Page:https://rubberduckvba.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Indenter Trim/Remove Trailing Spaces

5TjpWBU2wkwHpFDb opened this issue · comments

Excess whitespace at the end of a line, esp. a "blank" line, is a hindrance when I use cursor keys.
Please, make the indenter Indenter Trim/Remove Trailing Spaces

Additionally, maybe reduce multiple "blank" lines to one?
Additionally, maybe remove the "blank" lines at the end of a module?

We really need to handle #4251 before tackling any indenter enhancements, so I'm applying [status-deferred]

Side note, the indenter in RD3 is going to become "code formatting", to adhere with LSP terminology; trimming extraneous whitespace is very much in scope there.
It's also inherently going to be based on hierarchical symbols and semantic tokens, which is a couple of notches beyond what the 2.x model is making available in the internal API.

The v3 model is being implemented right now, so code formatting will be a possible RD3 work item once the language server is able to issue workspace symbols and semantic tokens.
Note to self: no need to wait until symbol types are resolved to invoke the code formatting pipeline.