I did not find a way to configure this behavior, but as a workaround, you can explicitly choose the editor that will be used with * .cshtml files, and then it works correctly.
Go to Tools -> Options -> Text Editor -> File Extension

PS It seems that the settings for the HTML text editor (Razor) were provided in a separate node, but I do not see it in the VS 2013 release. See HTML editing options in Visual Studio 2013 Preview
I also saw that Tools -> Options -> Text Editor -> HTML (Web Forms) -> Formatting has options that specifically indicate the behavior you are getting.
Anton source share