I want to use a Resharper structural search and replace template to automatically replace examples of this:
new Fruit { Name = "Apple", IsTasty = true }
With this:
new Fruit("Apple", true)
(Note, the required constructor already exists)
I've tried various combinations like this:
new $type$ { Name = $name$, IsTasty = $isTasty$ };
...using various different Placeholder types, but R# doesn't find any of the examples in my code. Has anyone done this before?