I have a display template in MVC that is for a collection of elements, so the first line of my cshtml file looks like this:
@model IList<Some.Namespace.ViewModels.MyListItem>
If I add new HTML to the file and then do CTRL + K + D to automatically format it, it will now change my model to all of the following lines:
@model IList<Some.Namespace.ViewModels.MyListItem>
This is a huge pain that continues to change after automatic formatting, because it clearly breaks my html helpers until I fix the case. I found this question , and he said that it is related to MVC3.
I am running VS2013 Update 4 with MVC5 and I still have this problem. I cannot find anything in the text editor settings to change this behavior.
I also use ReSharper 8.2 and Web Essentials 2013 for update 4.
Is this a known issue or do I have a parameter that is breaking something?
source share