ilnur_safin
ilnur_safin

Reputation: 51

multiple replacing in resharper (Single, Count methods etc)

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

Upvotes: 0

Views: 166

Answers (1)

Igal Tabachnik
Igal Tabachnik

Reputation: 31548

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.

Upvotes: 1

Related Questions