File Name and Class Name Change Prompting user in Visual Studio 2015

Recently I was just started with Visual Studio 2015.I saw, couple of new small feature included Visual Studio 2015.Prompting the user when renamed file name of solution or a Class name.

Change File name in Solution:

In a scenario I have modified the file name of a class and immediately it prompt me as shown in the following figure.

 

Here it is prompting to perform the same rename to all of its references in the project. This is a very good feature as it will save a developer’s time to manually resolve the name issue.

Change Class name:

There is another similar feature like, when developer rename a class name, the new name is surrounded by a dotted line as following figure.

 

Above figure also showing the notification of potential fixes, and if you click on the notification, this will ask you to Rename all references as following figure. This fixes all old reference with new name.

Ebook Download
View all
Learn
View all