0

When I'm trying to write a custom rule in Resharper to split method, I can't save a rule when there are multiple methods in replace pattern screen (It says that method1 is unexpected token, although when I remove method2 everything is OK)

Is there any way to achieve this?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Mateusz Dryzek
  • 651
  • 4
  • 18

1 Answers1

1

Unfortunately, this isn't possible. The Structural Search and Replace functionality works on code "units", rather than text. So it can replace a single expression or method, but not with multiple methods.

citizenmatt
  • 18,085
  • 5
  • 55
  • 60