Automatic capitalization of keywords

  • Thread starter Thread starter Tim
  • Start date Start date
T

Tim

I just bought VS .Net, and am getting up to speed. One thing I can't find,
though, is how to get the editor to automatically capitalize keywords
(Public, As, Imports, etc.), the way the VB 6.0 editor did. Does anyone
know how to do this, or was this capability dropped in .NET? Thanks.
 
Tim said:
I just bought VS .Net, and am getting up to speed. One thing I can't find,
though, is how to get the editor to automatically capitalize keywords
(Public, As, Imports, etc.), the way the VB 6.0 editor did. Does anyone
know how to do this, or was this capability dropped in .NET? Thanks.

This feature should be enabled automatically if you edit a ".vb" file that
is part of a VB.NET project. If it does not work, check "Tools" ->
"Options..." -> "Text editor" -> "Basic" -> "VB-specific" -> check all
options there.
 
Thanks. I finally discovered that the "Pretty listing (reformatting) of
code" option must be turned on, and that solves the problem. However, the
reason I initially turned it off is because when it is on, if you also have
the "Tabs"->"Keep tabs" option selected, the VB Editor cuts your "Indent
size" setting in half. So if your "Indent size" setting is 2 spaces, when
you leave a line of code, the VB Editor changes your tabs to have an "Indent
size" of only 1 space. You have to either select the "Tabs"->"Insert
spaces" option, or double your "Indent size" setting from what you actually
want. Oh well, thanks for the help on this one, anyway.
 
OK, after a little more investigation, I discovered that if you also select
the "Tabs"->"Block" Indenting option, your tab spacing is not altered.
Thanks again for all the help.

--
Tim

Tim said:
Thanks. I finally discovered that the "Pretty listing (reformatting) of
code" option must be turned on, and that solves the problem. However, the
reason I initially turned it off is because when it is on, if you also
have the "Tabs"->"Keep tabs" option selected, the VB Editor cuts your
"Indent size" setting in half. So if your "Indent size" setting is 2
spaces, when you leave a line of code, the VB Editor changes your tabs to
have an "Indent size" of only 1 space. You have to either select the
"Tabs"->"Insert spaces" option, or double your "Indent size" setting from
what you actually want. Oh well, thanks for the help on this one, anyway.
 
Back
Top