Why doesn't Visual Studio code formatting work properly for Razor markup?

后端 未结 10 1619
醉梦人生
醉梦人生 2020-12-08 13:04

Or, should I rather ask, when will VS code formatting work properly for Razor markup? The formatting works for most structures, but it seems to choke on \'if\' blocks. The c

10条回答
  •  Happy的楠姐
    2020-12-08 13:24

    I found another solution for this. Just select all code in file, click Shift + tab to remove all tabs before code, copy and paste it. Visual studio automatically format code. Work on VS 2013 .cshtml file

提交回复
热议问题