Project
ReSharper
Priority
Normal
Type
Feature
Fix versions
7.0
State
Submitted
Assignee
Alexey Kuptsov
Subsystem
No subsystem
Affected versions
6.1.1
Fixed in build
No Fixed in build
  • Created by   Michael
    2 months ago (23 Feb 2012 05:34)
  • Updated by   Kirill Falk
    2 months ago (05 Mar 2012 13:29)
 
RSRP-288489 Moving parameters in string.Format() should adjust the placeholder reference
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
R# enables the user to move parameters left and right using CTRL+SHIFT+ALT+<arrow>, which is great, but it would be far more useful if R# would also adjust the parameter reference when parameters are moved around within a string.Format expression.

For example, if I start with the following code:

string.Format("One {0} {1}", "fun", "day")

Place the cursor inside "day" and press CTRL+SHIFT+ALT+<left arrow>, I will end up with:

string.Format("One {0} {1}", "day", "fun")

I would rather the reference followed me, so that I would end up with:

string.Format("One {1} {0}", "day", "fun")
Comments (0)
 
History
 
Linked Issues (?)
 
TeamCity Changes (0)
 
Issue has no comments