Visual Studio 2015 Extension to replace var with strong type.
To try the varToType Extension:
- Download the VSIX from here
- Install VSIX.
- Open a new instance of Visual Studio 2015 (tested only in VS 2015 as of now).
- Open a C# project, which has code files using var.
- On every usage of var, a light bulb style refactoring should be available.
- Click on light bulb or Ctrl+ . and it would show the preview of the fix.
- Choose to fix that instance, all instances in document, project or solution.
- On accepting, the fix is applied.var should be replaced with Fully qualified name as discovered.