How can I insert extra spaces to align code in the Visual Basic Editor?

2

2

I’d like to add spaces to align the “=” in this:

unaligned text

To get something that looks like the alignment of “As” in this:

aligned text

When I try to add spaces to align the “=”s, the Visual Basic Editor removes them as soon as I leave the line. Curiously, it does not remove the spaces when I add them to the lines that begin with Dim. How can I get the Visual Basic Editor to allow me my spaces?

Matt F.

Posted 2016-09-02T13:58:55.950

Reputation: 121

2It's not generally good practice to do that anyway – Raystafarian – 2016-09-02T17:38:22.627

Answers

0

That's bad practice. Alternatively, consider grouping types together, but only when it improves readability.

Dim etime as Long
Dim temparr as Variant
Dim begin as Boolean, gapsFlag as Boolean

airstrike

Posted 2016-09-02T13:58:55.950

Reputation: 628