Highlight %X patterns in String.format() as cursor moves through arguments
See the image attached - long or complex String.format() expressions may contain quite some %X patterns and lot's of corresponding actual arguments. When it happens - tracking to which %X belongs every actual argument is becoming not very easy, one has to simply do it with his eyes. I think IDEA could help a lot in that point by highlighting the %X portion of the pattern (with a red square border, may be ?) when cursor moves through the actual arguments.
This way "visually binding" every argument to where it belongs in a potentially long and complex pattern will be just a pleasure ..
Attachment(s):
1.png
请先登录再写评论。
+1
Similar behavior could be implemented for MessageFormat.format().
Regards,
Jens
Right, that would be outstanding.
String.printf() is another candidate.
And / or everything corresponding to an argument labeled with IntelliLang's @PrintFormat annotation.
RRS
+1
Great idea. It'd be nice if it went both ways; In other words hovering over the %X highlights the corresponding argument, and hovering over the argument highlights the corresponding %X.
Sounds like enough people like the idea. Might I suggest opening a JIRA so we can vote for it.