Rubberduck icon indicating copy to clipboard operation
Rubberduck copied to clipboard

Indenter Trim/Remove Trailing Spaces

Open 5TjpWBU2wkwHpFDb opened this issue 1 year ago • 2 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?

5TjpWBU2wkwHpFDb avatar Nov 16 '23 23:11 5TjpWBU2wkwHpFDb

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

Vogel612 avatar Dec 22 '23 12:12 Vogel612

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.

retailcoder avatar Jan 29 '24 20:01 retailcoder