Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

A pluging for ReSharper which provides context action to replace strings interpolated with embedded variables to string.Format method call with these variables as arguments.

License

Notifications You must be signed in to change notification settings

hazzik/ReSharper.StringFormat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

###ReSharper.StringFormat

This is a plugin for ReSharper which provides context action to replace PHP-like strings with embedded variables to string.Format method call with these variables as arguments.

###Example

class Program
{
  static void Main()
  {
    var a = 1;
    string s = "a is {a}";
  }
} 

will be replaced to:

class Program
{
  static void Main()
  {
    var a = 1;
    string s = string.Format("a is {0}", a);
  }
} 

###Installation

Available in ReSharper Gallery

###Donations

Donations are welcome to

  • BTC: 19woiHcAZqDBLDAsi5QDVGwqxdaQawwt6J
  • LTC: LP3wMjumuutC45MVwqbNitavUXFqAD8YjU

About

A pluging for ReSharper which provides context action to replace strings interpolated with embedded variables to string.Format method call with these variables as arguments.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published