Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-288489: Moving parameters in string.Format() should adjust the placeholder reference

$
0
0
Reporter Michael (mteper) 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")

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>