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

RSRP-88065: Highlight corresponding argument in format string

$
0
0
Reporter Drew Noakes (drewnoakes) Drew Noakes (drewnoakes)
Created Dec 9, 2008 4:49:41 PM
Updated Apr 11, 2018 6:31:20 PM
Subsystem Matching Elements - String Format
Assignee Ivan Serduk (IvanSerduk)
Priority Normal
State Open
Type Feature
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
In the same way that matched parenthesis/braces are highlighted, it'd be nice to have a marker that indicates which value/token corresponds to the token/value under the caret.

For example:

string.Format("The r{0} in Sp{0} falls m{0}ly on the pl{0}.", "ain");

Having the caret on any of the {0} tokens would highlight the "ain" value.

Conversely, having the caret on the "ain" value would highlight all of the {0} tokens.

Viewing all articles
Browse latest Browse all 106942

Trending Articles