Initialize field from constructor doesn't work in some project.
I have 2 different projects A and B.
In project A, I can press alt+enter to use "Initialize field from constructor"

but in project B, when I press alt+enter "Initialize field from constructor" doesn't appear.

I use Visual Studio Community 2017 and ReSharper Ultimate 2018.3.1
How can I solve this problem? thanks.
Please sign in to leave a comment.
Hello!
Sorry for delay in responding.
Do those projects refer to different solutions as well? Possibly "Field is never used" inspection is disabled for one of solutions.
Thank you.
Thanks for your reply.
I found one of my projects suppress warning 0169.
When I remove it, "Initialize field from constructor" works!!!
When I create a new project, visual studio always suppresses warning 0169.
Is there any way to remove this suppress warning when I create a new project?
Thank you.