Use actual type names with Var Replacer

If you prefer to see actual type names instead of implicit type var, the new Var Replacer C# extension for Visual Studio 2015 by Peter Spada is a must have. It is implemented as a standard analyzer with a code fix that adds a red squiggle in the editor for each var usage and offers a code fix to replace it with the actual type:

To quickly apply this fix for the current line press Ctrl+. and Enter. From the popup window you can also apply this transformation to the whole document, project or solution.

This entry was posted in Reviews and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s