For example, the following snapshot depicts generation of a new local variable:
What I want is to have it generated as bool help
, instead of Boolean help
.
Is it possible?
For example, the following snapshot depicts generation of a new local variable:
What I want is to have it generated as bool help
, instead of Boolean help
.
Is it possible?
There are settings to control whether type names or keywords are used in generated code. Look under Tools/Options/Text Editor/C#/Code Style.
First, technically no difference between bool and Boolean in c#, because bool is the alias for Boolean class.
But you can change code generation setting through tools/options in VS.
You will see that second check box is unchecked in your view. so, make it checked to get auto generated code with alias , instead of class name.