ReSharper には、string.Format() などのフォーマット変数をハイライトする機能があります。
これで、次のように文字列を流暢にフォーマットする拡張機能を作成しました。
public static string FormatWith(this string me, params object[] args) {
return string.Format(me, args);
}
だから私はできる:
ここで、文字列の後に が続く場合はいつでも、 {0}
andに同様の構文強調表示を実装したいと思います。これはReSharperで可能ですか?{1}
.FormatWith