Verthosa
Verthosa

Reputation: 1688

Resharper - modify string interpolation back to string.Format

some days ago i followed an advice of ReSharper to modify all string.Format's to string interpolations. I accepted the suggestion and changed it all throughout the complete solution.

Since we are working in a team, i discussed this change (afterwards, when the damage was done) and we decided to go back to the string.Format's to be sure nothing was broken.

Now, is there a way to tell ReSharper to change all my string interpolations back to string.Format's? I hope there is.

Notes:

It would be great to have an easy way to do this instead of just undoing my checking to TFS (file per file, as there are other changing i want to keep).

Upvotes: 5

Views: 1343

Answers (1)

Alexander Kurakin
Alexander Kurakin

Reputation: 13523

Put the cursor on a interpolated string | hit Alt+Enter | Convert to 'string.format' | Convert to 'string.format' in solution

Upvotes: 5

Related Questions