1

For example, the following snapshot depicts generation of a new local variable:

enter image description here enter image description here

What I want is to have it generated as bool help, instead of Boolean help.

Is it possible?

mark
  • 59,016
  • 79
  • 296
  • 580

2 Answers2

3

There are settings to control whether type names or keywords are used in generated code. Look under Tools/Options/Text Editor/C#/Code Style.

Matt Warren
  • 1,956
  • 14
  • 15
0

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.
As you seen

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.

Hiran
  • 1,102
  • 11
  • 18