R# 9 css line comment


I'm creating MVC5 app using VS2013 with R#9. All works great unless I try to do line comment in css file using ReSharper way (Ctrl + /). It works everywhere (C#, JavaScript, HTML, etc.) but not in CSS file - only standard VS comment shortcuts are available here. Is that some kind of bug or R# just doesn't allow to do line comments in CSS?

Best regards,

1 comment
Comment actions Permalink

CSS doesn't technically support single-line comments using the "//" syntax. It only supports block comments - "/* ... */".

Adding "//" to the start of a line will disable the following construct, but only because it's treated as an invalid selector or property name.



Please sign in to leave a comment.