0

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

Soner Gönül
  • 97,193
  • 102
  • 206
  • 364

1 Answers1

1

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.

Igal Tabachnik
  • 31,174
  • 15
  • 92
  • 157