We've had a lot of requests for beautifers for other languages, especially Perl, for some reason.
// begin funny macro -- sense of humor required
//
_command void basic_or_perl_or_ruby_beautifier()
{
select_all();
delete_selection();
select_mode("c");
}
// end funny macro
OK, now, seriously, we have a feature request filed for a "generic" beautifier that does simple stupid things like re-indenting each line (as if you used tab to re-indent), stripping trailing whitespace, replacing leading whitespace with user specified preferences (real tabs vs. spaces), and respacing around operators, parens, and commas.
This sort of beautifier couldn't ever re-arrange code, for example brace styles, but it could as least get you to "not ugly". The feature didn't make the cut for our next revision, but maybe this is a great opportunity for a forum user to step up and write a really useful macro that does these things. Good starting point: filter_selection().
Finally, GNU indent may have a lexer for VB, depending on what generation of Basic you are talking about.
--Dennis