Adding intillisence to .LESS files
-
Tuesday, March 27, 2012 12:42 AM
Hi All,
I am working to add custom intillisence (set of custom values stored in text file) in .LESS files. Visual studio 2010 does not provide intilisence for .LESS files.
Kindly share the approach, like
1. Which template needs to be taken in extensibility and
2. Other pointers required to accomplish the task.
Thanks,
Prashant
All Replies
-
Tuesday, March 27, 2012 9:16 AM
Hello Prashant,
I am trying to involve someone familiar with this topic to further look at this issue.
Thanks.
Vicky Song [MSFT]
MSDN Community Support | Feedback to us
-
Wednesday, March 28, 2012 7:52 AMModerator
Hi Prashant,
You can try to use Chirpy
for our LESS support (as well as our google closure compiler support). It allows you to configure file extensions for LESS, such as .less.css, and then you can have Intellisense support.
more information : Chirpy - VS Add In For Handling Js, Css, DotLess, and T4 Files http://chirpy.codeplex.com/
You also can see whether the answer in this reply is helpful: http://stackoverflow.com/questions/5826062/intellisense-on-less-files
Quote:
Looks like the StaticFileHandler is what I was looking for. This is how we ended up adding it to our httpHandlers node in web.config:
<add verb="*" path="*.less.css" validate="false" type="dotless.Core.LessCssHttpHandler, dotless.Core, Version=1.1.0.7, Culture=neutral, PublicKeyToken=96B446C9E63EAE34, processorArchitecture=MSIL" />
<add verb="*" path="*.css" type="System.Web.StaticFileHandler" />Lucy Liu [MSFT]
MSDN Community Support | Feedback to us
- Marked As Answer by lucy-liuModerator Monday, April 02, 2012 6:28 AM
-
Wednesday, March 28, 2012 5:14 PM
Ok..So I had already added CSS intillisence in Less files using extensibility in VS2010.
DOT LESS files contains variables, Now I want to add those variables to intillisence window, and we keep on adding the variables in the LESS files so it should always be dynamic.
-
Monday, April 02, 2012 4:59 PM
OK...I found the solution......
Implemented ICompletionSource interface to customize the intellisense as per my project requirement.
Below article is working exactly what I was looking.
- Marked As Answer by Mr Prashant Monday, April 02, 2012 4:59 PM

