Identifying Views with similar names in visual studio .net mvc project

If you have worked on asp.net or any mvc projects, you have created similar view names like index, create, details, delete for different controllers. Now the problem is when you have multiple files with similar names opened up in VS, it gets confusing and you end up reopening the file from the solution explorer. With this solution that I will show you, you can have different color code for similar named view files that belong to different controllers.

Like so



With the productivity Productivity Power Tools extension, you can have different colors for different views, which makes identifying the views with similar names easier in visual studio. I used vs2010. After configuring the tool, this is how it looks.





Here is how in easy 5 steps. 1. Open Tools>Extension Manager in Visual Studio. Select ‘Online Gallery’ on the left pane and search for ‘Productivity Power Tools’. Download it, restart Visual studio.




2. Goto ‘Tools > Options. On left pane, you should have a new set of options for Productivity Power Tools. Select Document Tab Well > General. Check ‘Color tabs by regular expression’.



3. Click Advanced Options and check ‘Use full document path for Regular Expression matching





4. Goto ‘Color Coding’ and create some Reg.Ex. settings like so.




5. You are done..you should see the colors :)