0

When using R# structural find/replace, is it then possible to alter/modify the output of a token?

e.g. if I capture an identifier, can I then reformat this using regex in the output? I'd like to transform this:

[Fact] public void SomeMethodName()

with:

[Fact(DisplayName = "Some method name"] public void SomeMethodName()

Possible?

Roger Johansson
  • 22,764
  • 18
  • 97
  • 193

1 Answers1

0

Structural Search and Replace doesn't support anything like this - i.e. something like Live Template's macros. It would be very nice if it did! Here's a YouTrack feature request that you can vote on and track: http://youtrack.jetbrains.com/issue/RSRP-166388

citizenmatt
  • 18,085
  • 5
  • 55
  • 60