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#.
When "Use String.Format" option is checked in the options dialog,
then JustCode suggests you to use String.Format.
To use String.Format instead of string addition expression
Position the caret inside an addition expression which result is of type String.
Select Use String.Format from the VisualAid's Fixes menu.
The result is (when applied for each expression):
To use String.Format on a format string which is outside context
Position the caret inside a format string which is not used as a parameter of a String.Format method.
Select Use String.Format from the VisualAid's Fixes menu.
The result is (when applied for each expression):
See Also