multiple replacing in resharper (Single, Count methods etc)

170 Views Asked by At

Resharper allows to replace only one issue. How to replace all same issues in entire proect?

For example, to replace

ctx.Shops.Where(t => t.ShopId == currentBase.ID).Single() 

by

ctx.Shops.Single(t => t.ShopId == currentBase.ID)

you should push button as shown in the

enter image description here

How to replace all accurances of Sinle method in entire project?

Version of resharper 9.1 and 10

1

There are 1 best solutions below

1
On

Hmm, fixing this for entire file/project/solution (aka "fix in scope") does not seem to be supported.

The closest I could think of is selecting Inspection "Replace with single call..." > Find similar issues..., and then navigate between the results and fix manually.