How to turn on Visual Studio 2010 .css Intellisense on .less file

前端 未结 9 996
遇见更好的自我
遇见更好的自我 2020-12-13 01:30

Does anyone know how to enable css intellisense in a non .css file extension? I have a .less file that is basically a .css file but visual studio will not use .css intellis

9条回答
  •  旧时难觅i
    2020-12-13 02:21

    I highly recommend using Crunch: http://crunchapp.net/

    Visual Studio (Express included) allows you to open Less files with Crunch. True it doesn't open them in Visual Studio, it opens Crunch to edit the file, but there are many reasons to use Crunch anyways. The biggest reason is that Crunch will take your Less code and compile to a pure CSS file. The benefits are that you don't need to include the less.js script in your website, which avoids extra overhead, you can write Less code, and it's as simple as double-clicking your less file in VS, editing the file, then "crunching" (or saving) it over your CSS stylesheet. No need to touch the pure CSS generated by crunch.

提交回复
热议问题