Resharper string.format shortcut

前端 未结 5 1123
礼貌的吻别
礼貌的吻别 2021-01-13 04:04

I often find myself writing

var message = \"Hello {0}\";

and then going back and typing in

var message = string.Format(\"He         


        
5条回答
  •  无人共我
    2021-01-13 04:55

    Shameless plug

    I've also tried to formulate an approach to make string format creation easier, and what I came up with is string splicing a-la PHP:

    enter image description here

    This is part of a ReSharper plug-in that you can find here.

提交回复
热议问题