Reporter |
![]() |
---|---|
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.
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.