Possible to insert new format specifier and update?

[6.1.37.86]

Given the string:
var foo = string.Format("A: {0}.", a);

Can I somehow insert string before A and have format members updated accordingly?
E.g.
var foo = string.Format("A0: {0}, A: {0}.", a0, a);  //some quickfix "update format specifiers to match arguments" ?

Thanks.

2 comments
Comment actions Permalink

Hello
     I'm afraid there's no such refactoring. Do I understand correctly that this refactoring should transform

var foo = string.Format("A0: {0}, A: {0}.", a0, a);

into

var foo = string.Format("A0: {0}, A: {1}.", a0, a);

?

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0

Please sign in to leave a comment.