Telerik® JustCode™ by Progress

Telerik® JustCode™ can suggest you to use String.Format and increase your code readability or to add it quicker by just typing the format string.

Note

Language Support

Supported: C#, VB.NET

Not supported: JavaScript, ASP.NET, XAML, HTML

The behavior can be controlled in JustCode Options - JustCode / Options / Code Analysis / Hints / C#.

To use String.Format instead of string addition expression

  1. Position the caret inside an addition expression which result is of type String.

  2. Select Use String.Format from the VisualAid's Fixes menu.

    Use String Format
  3. The result is (when applied for each expression):

    Use String Format Result

To use String.Format on a format string which is outside context

  1. Position the caret inside a format string which is not used as a parameter of a String.Format method.

  2. Select Use String.Format from the VisualAid's Fixes menu.

    Use String Format Broken
  3. The result is (when applied for each expression):

    Use String Format Broken Result

See Also