473,320 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

C# case sensitivity and VS.

Is there an option in VS IDE which can be set for automatically fixing of
C#'s case sensitivity typing errors?

Ex.
if I type getLength , I want VS to convert it into GetLength.
Thanks
Nov 16 '05 #1
4 1552
<<Trebor>> wrote:
Is there an option in VS IDE which can be set for automatically fixing of
C#'s case sensitivity typing errors?

Ex.
if I type getLength , I want VS to convert it into GetLength.


It will if you complete it with Intellisense - i.e. type getle and hit
Ctrl+Space, then select GetLength and hit tab.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #2

no. because in C#, IDE cannot just assume difference in casing is a typing error. it is perfectly legal (though terrible programming practice) to have a variable foo and another variable Foo in the same scope. you just need to give up your bad legacy habit from VB ( another reason why VB is evil :) ) and start training your fingers, paying more attention to correct casing. follow standard naming convention is a starter

----- Trebor wrote: ----

Is there an option in VS IDE which can be set for automatically fixing o
C#'s case sensitivity typing errors

Ex
if I type getLength , I want VS to convert it into GetLength
Thank

Nov 16 '05 #3
C P
....but isn't one of the C# conventions to use "foo" for a private variable,
and use "Foo" for the public property that exposes that private variable?

"Daniel Jin" <an*******@discussions.microsoft.com> wrote in message
news:21**********************************@microsof t.com...

no. because in C#, IDE cannot just assume difference in casing is a typing error. it is perfectly legal (though terrible programming practice)
to have a variable foo and another variable Foo in the same scope. you just
need to give up your bad legacy habit from VB ( another reason why VB is
evil :) ) and start training your fingers, paying more attention to correct
casing. follow standard naming convention is a starter.
----- Trebor wrote: -----

Is there an option in VS IDE which can be set for automatically fixing of C#'s case sensitivity typing errors?

Ex.
if I type getLength , I want VS to convert it into GetLength.
Thanks

Nov 16 '05 #4
C P <no****@nospam.com> wrote:
...but isn't one of the C# conventions to use "foo" for a private variable,
and use "Foo" for the public property that exposes that private variable?


Yes, it is. I would agree that it would be bad practice to have both as
*variables*, but I personally use the convention of variable foo,
property Foo.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

32
by: Elliot Temple | last post by:
Hi I have two questions. Could someone explain to me why Python is case sensitive? I find that annoying. Also, why aren't there multiline comments? Would adding them cause a problem of some...
761
by: Neo-LISPer | last post by:
Hey Recently, I researched using C++ for game programming and here is what I found: C++ game developers spend a lot of their time debugging corrupted memory. Few, if any, compilers offer...
16
by: Starwiz | last post by:
I'm a VB.net programmer, and I'm about to start working with two C++ programmers and teach them .net. I've decided to use C# in teaching them, since it's similar enough to VB.net that I can read...
3
by: Jason Tesser | last post by:
I am converting data from Access into Postgres and ran into an issue with case sensitivity. Can I write queries in Access that will be case insensitive without rewriting the queries. So I would...
14
by: Christian Sell | last post by:
Hello, I am running into a problem with PGs case sensitivity with regard to column and table names. I am using program components that require the object names returned from database metadata...
15
by: gregory_may | last post by:
Is there any options in VS 2005 to better handle case issues in C# (Similar to VB.Net)?
1
by: othellomy | last post by:
Is SQL server defaults to case insensitive? I am sure there are ways to install case sensitive SQL server instance but coming from Sybase (which is always case sensitive) case insensitivity is...
3
by: Anita Potekkat | last post by:
Hello, I had a question regarding Case Sensitivity in 10g & 9i. (1) Does Case Sensitivity in Oracle have to do with data only? Or does it also effect table & column names? For e.g. in a table...
2
by: sweetpotatop | last post by:
Hi, I believe my SQL server was configured as Case sensitivity. I have a number of stored procedures which were moved from a non-Case sensitivity SQL server. Because of the Case sensitivity, I...
2
by: Lucky | last post by:
Hi guys, I'm having problem with case sensitive collation of SQL Database. one my client is having case sensitive database. While developing the Data Layer i didn't consider this scenario. the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.