One of my favorite features of Visual Studio was that it auto-corrected the case of keywords (when using VB) after you hit return on a line. So for example, if I typed:
if personName = "Paul" then
Visual Studio would immediately convert it to:
If personName = "Paul" Then
A small thing, I know. But I have OCD when it comes to my code. And I find mixed case to be much easier to read.
I’m a pretty good typist so I just type my REALbasic code the way I want it, but I’ve always wished it could do what Visual Studio did.
Well on the Betas e-mail list, Bob K. asked about a feature (not new to the beta) that I hadn’t noticed: Standardize Format. You access it from the contextual menu (right-click) when you have code selected.
This magical command auto-corrects all the keywords in the selected code.
I love it! Now I can bang out code and quickly fix it to meet my standards. And more importantly, I can easily fix other people’s code so that it is “right”.



Holy crap! That’s awesome! When did that get added to REALbasic?
I just did some checking and I’m afraid it was added to REALbasic a LONG time ago…
It first appeared in REALbasic 2005 Release 3!!!!
Wow! That is awesome. I was always using autocomplete to let it convert it to proper display but it is a pain for some things like integer, if, then, end if, etc… Great discovery! I wonder what other gems are in there that most people didn’t know about.
Well, to be honest, I have a bit of a problem with only being able to access certain commands via the contextual menu. Sure, Microsoft and even Apple do it all the time, but that doesn’t make it right.
Maybe I’m just old school and just don’t think to right click on objects. Must be a sure sign that I’m getting old.
Wow! That is cool. Does it auto-fix spacing too? Such as changing:
if a=5 then
to
if a = 5 then
To answer my own question… no, it does not.
You have a utility for standardize all source code
of realbasic.
http://rgb.free.fr/rb/demo/Print_Color_Tools.zip