开发者

How to disable .less (dotLess CSS) syntax analysis in ReSharper 6?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜