Usable is an add-in for Fody
Usable adds using statements for local variables that have been created, and implement IDisposable.
Nuget package http://nuget.org/packages/Usable.Fody
To Install from the Nuget Package Manager Console
PM> Install-Package Usable.Fody
public void Method()
{
var w = File.CreateText("log.txt");
w.WriteLine("I'm a lumberjack an' I'm ok.");
}
public void Method()
{
using (var w = File.CreateText("log.txt"))
{
w.WriteLine("I'm a lumberjack an' I'm ok.");
}
}
Trash designed by Shirley Wu from The Noun Project