R# 6.0 indent issues with K&R brace style in Razor file
I'm using R# 6.0 with all of the bracing styles set to K&R. In addition, under Tools*Options*Text Editor*C#*Formatting*New Lines, I've matched K&R style for the checkboxes.
I've noticed that if I create a new block (such as an "if(cond) {" statement) in a Razor file (i.e. MyView.cshtml) that R# will indent the first line inside of the block to the right of the opening "{" rather than where it should be for K&R style (i.e. just to the right of the "if"). This only happens in .cshtml files and behaves normally in C# files.
However, if I go back to the opening "{" after it's created and delete it and then type it again and press enter, the indent goes to where I expect it to be.
What's the easiest way to fix this?
Thanks!
Please sign in to leave a comment.
Hello Jeff,
You're welcome to track the progress of this problem at http://youtrack.jetbrains.net/issue/RSRP-274384.
Thank you!
Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Thanks for taking the case