17

When i create a less file with .less extension, WebEssentials not show less syntax(intellisence, colored syntax) And not appear preview page, ever not known less files!

also all of less options in WebEssentials settings is enabled.

what is problem?

SOLUTION: My Problem Not Solved by Installing Asp.Net Web Tools 2012.2.

I Solved Problem By Installing Web Developer Tools 2012.2 from => http://go.microsoft.com/fwlink/?LinkID=282228

user197508
  • 1,282
  • 2
  • 18
  • 31
  • 2
    VTC - possible duplicate of [LESS files in Visual Studio not syntax highlighted](http://stackoverflow.com/questions/15323250/less-files-in-visual-studio-not-syntax-highlighted) - see the answer there. Less support has been removed from WE2012. – Jude Fisher Mar 12 '13 at 16:46

3 Answers3

11

You need to install "ASP.NET and Web Tools 2012.2" to get the LESS editing experience to light up in VS.

Mads Kvist Kristensen
  • 2,610
  • 2
  • 18
  • 14
  • Yes I installed "ASP.NET and Web Tools 2012.2" and new version of WebEssentials, But syntax highlighter and preview window doesn't work. please see this image: http://i.imgur.com/fhD0nmh.jpg – user197508 Mar 13 '13 at 05:18
9

I solved my problem by installing Web Developer Tools 2012.2

Dhaust
  • 5,470
  • 9
  • 54
  • 80
user197508
  • 1,282
  • 2
  • 18
  • 31
3

I could not get VStudio 2012 to recognize the .less files either. Finally, I went to Tools...Extensions and Updates... I then disabled the Web Essentials plugin (see image) by clicking the Disable button. enter image description here

After that, Visual Studio will ask if you want to restart. Click the "Yes" button. Next go back to Tools...Extensions and Updates...

Now, go ahead and go down to the Web Essentials item and select it. You can now click the Enable button and restart again.

This time when it restarted my .less file now displayed the split screen, but I still couldn't see the .css file it generates at the left (see image). I clicked the "Show All Files" up in solution explorer, but they still didn't show. Finally, I double-clicked the .less file and it generated the split screen on the left and the list of gen'd files showed up.

Files Generated by .less

raddevus
  • 8,142
  • 7
  • 66
  • 87