mark
mark

Reputation: 62876

Is it possible to configure intellisense in VS 2015 so that when a local variable is generated it is initialized with the default value for its type?

I often use the Generate Local Variable feature of the VS 2015 intellisense. But the variables are generated uninitialised. In 99% of the case this is not what I want.

Is it possible to configure the intellisense to initialize the generated variable?

Upvotes: 0

Views: 40

Answers (1)

Sara Liu - MSFT
Sara Liu - MSFT

Reputation: 6218

Search around there have no such function or extension to implement your requirement, I shared this suggestion with the VS Product Team and please check this: VS 2015>quick actions with light bulbs: please add the support to custom/modify the Generate Local Variable feature, you can vote it and the higher vote number can make the VS Product Team engineers to notice this suggestion.

Upvotes: 1

Related Questions