Can C # automatically fix a syntax case like VB.NET?

Is there a parameter that will allow C # to auto-adjust its body, similar to VB.NET. For example, when I type dim x as integerin VB.NET, it automatically converts it to dim x as integer, but C # does not do this type.

+3
source share
5 answers

No, because C # is case sensitive. These two statements can have completely different meanings. It would not be possible for the IDE to know what you wanted to use.

+10
source

There is something a visual studio will offer you.

, DateTime, DateTime. , ( , /), CTRL + , ( ) IntelliSense.

+1

#, int, float .. . String, , String, . # .

0

intellisense, Visual Studio

0

, IDE , , # ( ), , .

, VS2008 VS2010 , , foreach public.

  • Enter FOREACHand press the spacebar, you will getFOREACH
  • Enter PUBLICand press the spacebar, you will getPUBLIC

I use the default settings.

This is intellisense though, so if you type IF, you will getIFormatProvider

0
source

All Articles