See attached example.
If you have {0} in the string twice, then execute Introduce Format Item, it uses {2} for the new item instead of {1}:
Example:
Visual BasicDim myString As String = String.Format("Hello {0}, I see that your full name is {0} Last", first)
If you highlight "Last" and execute Introduce Format Item, you get:
Visual BasicDim myString As String = String.Format("Hello {0}, I see that your full name is {0} {2}", first, "Last")
instead of:
Visual BasicDim myString As String = String.Format("Hello {0}, I see that your full name is {0} {1}", first, "Last")
This is in VB.NET, not sure about C#
Hi Eric,
Thank you for reporting the issue to us. I managed to reproduce it on my side and passed the ticket to our team.
Please give us some time to prepare and publish the fix.
Regards,
Igor