Visual Studio 2013 Autoformat (CTRL KD) cshtml lowercase problem

I only recently upgraded to the 2013 version and when using the MVC 3 application, I had an automatic formatting problem in which the model declaration at the top of the cshtml file is lowercase when using the CTRL K + D key combination (or select all, select format ), eg

@model IEnumerable<Review> 

CTRL K + D

 @model IEnumerable<Review> 

The same project in VS 2012 works fine, and automatic formatting works, so I tried to export these settings and import them, but no luck.

I tried searching in Tools - Options - Text Editor amd changed the client tag in html web forms to "As entered", but this also did not work.

+6
source share
1 answer

Thanks ta.speot.is for this.

As mentioned in the comments below my question, VS2013 does not support MVC3.

To resolve this issue, upgrade MVC3 to MVC4 or later, and this fixes the automatic formatting issue.

+2
source

All Articles