Turn off case sensitivity?

  • Thread starter Thread starter gregory_may
  • Start date Start date
G

gregory_may

Hi

I am new to C#. I have done a good deal with VB.Net.

I am noticing how difficult case sensitivity is for me in C#. Is there a
way to turn it off or make it smarter about what I am trying to
auto-complete with Ctrl-Space?

Thanks!
 
Greg,

There is not a way to turn it off. VB's IDE is pretty vigorous in
enforcing cases.

As for making it smarter in auto-complete, do you have a lot of
variables which are the same name, but differ only in case? You might want
to consider renaming some of your items in your project if this is a case,
that way, Intellisense can only have one target when trying to complete
certain fragments.

Hope this helps.
 
I think VB will automatically rename keywords and variables to the proper
case. Its way cool & speeds up productivity. I guess I will eventually get
used to it.


Nicholas Paldino said:
Greg,

There is not a way to turn it off. VB's IDE is pretty vigorous in
enforcing cases.

As for making it smarter in auto-complete, do you have a lot of
variables which are the same name, but differ only in case? You might want
to consider renaming some of your items in your project if this is a case,
that way, Intellisense can only have one target when trying to complete
certain fragments.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

gregory_may said:
Hi

I am new to C#. I have done a good deal with VB.Net.

I am noticing how difficult case sensitivity is for me in C#. Is there a
way to turn it off or make it smarter about what I am trying to
auto-complete with Ctrl-Space?

Thanks!
 
I really miss that VB feature.

If C#,worked the same
it would fix my typing for me if I typed something like messagebox
instead of MessageBox..

-T-


I think VB will automatically rename keywords and variables to the proper
case. Its way cool & speeds up productivity. I guess I will eventually get
used to it.


Nicholas Paldino said:
Greg,

There is not a way to turn it off. VB's IDE is pretty vigorous in
enforcing cases.

As for making it smarter in auto-complete, do you have a lot of
variables which are the same name, but differ only in case? You might want
to consider renaming some of your items in your project if this is a case,
that way, Intellisense can only have one target when trying to complete
certain fragments.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

gregory_may said:
Hi

I am new to C#. I have done a good deal with VB.Net.

I am noticing how difficult case sensitivity is for me in C#. Is there a
way to turn it off or make it smarter about what I am trying to
auto-complete with Ctrl-Space?

Thanks!
 
Tony said:
I really miss that VB feature.

If C#,worked the same
it would fix my typing for me if I typed something like messagebox
instead of MessageBox..

In VS.NET or C# Builder, just type "messageb" then press CTRL-SPACE and
it'll show a list of values, with "MessageBox" most likely selected. To
choose this item, just press either ENTER or the character you want to
insert after it, such as SPACE, and it'll "MessageBox" then the character.
 
Hi gregory

I have seen your concern about C# code case-sensitive.

Actually, to peeds up your productivity, you can leverage the intellisense
in VS.net IDE to help you.

In VS.net IDE, all the intellisense function is listed in menu
Edit->Intellisense->...., you may remember the accelerate key of these
command.

For example, if you want to type "Console.WriteLine(string str, params
object[] args)", while you did not know the case, once you have pressed
"cons", you may press "Alt+ ->(right arrow)" to display all the matching
class in a pop up list window. Then you can select "Console" in the pop up
list window.

Once you have pressed "Console.writel", you can use "Ctrl+ J" to pop up all
the matching member window for you. Then you can select "WriteLine"

Then, after writing "Console.WriteLine("sdfd"", then you forget the other
parameters of "Console.WriteLine", you can press "Ctrl + Shift + Space" to
pop up a parameter information window.

If you have experienced on these "accelerate key" of intellisense, you will
greatly improve your work efficiency. And you will have no problem about
case-sensitive in C#.

========================
Please apply my suggestion above and let me know if it helps resolve your
problem.

Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Hi gregory,

Ok, I will wait for your feedback. Thanks :-)

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Hi gregory,

Have you tried my suggestion? Does it meet your need?

If you still have anything unclear, please feel free to feedback, I will
help you. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top