Reporter | Michael (mteper) |
---|---|
Created | Feb 23, 2012 5:34:45 AM |
Updated | Feb 23, 2012 5:34:45 AM |
Priority | Normal |
Type | Unspecified |
Fix versions | No Fix versions |
State | Submitted |
Assignee | Unassigned |
Subsystem | No subsystem |
Affected versions | 6.1.1 |
Fixed in build | No Fixed in build |
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")
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")