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

RSRP-200118: String Format Placeholders not Highlighted Before String Is Surrounded with String::Format

$
0
0
Reporter Serge Baltic (baltic) Serge Baltic (baltic)
Created Dec 11, 2010 12:04:38 AM
Updated Apr 28, 2012 12:28:37 AM
Priority Normal
Type Usability Problem
Fix versions No Fix versions
State Submitted
Assignee Alexey Kuptsov (alexey.kuptsov)
Subsystem Code Analysis
Affected versions No Affected versions
Fixed in build No Fixed in build
My common case is to write "aaa {0} bbb", then "Surround with String.Format", then enter whatever string format parameter values.

I'd like R# to highlight me {0} as smth "string-format-placeholder-like", with a suggestion to surround it with String::Format, or placing the string-format-method attribute on the method I'm calling if it can understand these strings on its own. I think false positives (ie cases when string format placeholders are encountered in string-format-unrelated strings) are quite rare. On the other hand, possible "forgotten string format" will be handled.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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