Auto format breaks @ rules in <style>

In a .cshtml file, if you have a style element, with for example @import or @page declarations, which are written with 2 @ signs in .cshtml like eg. 

@@import url('https://fonts.googleapis.com/css2?family=');

Upon autoformatting (Ctrl K + Ctrl D) Rider splits the 2 ‘@’ signs like this:

@

@import url('https://fonts.googleapis.com/css2?family=');
0
2 comments

Hello,

Thank you for reporting the issue. I have registered it on our tracker: RIDER-115455 Wrong reformat of "@@import url" or "@@page" in .cshtml under

Please watch the issue for further updates. We would appreciate it if you could upvote it to demonstrate your interest.

Have a nice day!

1

Please sign in to leave a comment.