ReSharper 6 considers .less files as .CSS, although they aren't.
So instead of proper syntax highlighting, it underlines nearly everything with red (syntax error).
How 开发者_如何学Pythoncan I disable this "feature"?
Just found a nice trick:
// /* Disabling ReSharper ;)
// .less code goes here
// */
It's better than disabling ReSharper for a particular set of files (ReSharper -> Options -> Settings -> Edit items to skip ...), since in this case each member of your team doesn't need to repeat this.
There are a whole bunch of file types that VS tends to screw up (.haml, .less, .html, .json, etc...) and some files that you need to edit that it wont easily allow (.proj, .sln, etc...).
Best thing is to find a good text editor that you like (vim, e, textmate, notpad++, etc...) and use it along side VS.
精彩评论