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.
Please sign in to leave a comment.
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!"
Correct.