DotLess IntelliSense In Visual Studio 2010
Asked Answered
C

4

8

I've recently found out about the DotLess library and I was so excited about it because CSS has been always annoying for me. I thought this library would be very convenient to use. Unfortunately, once I tried it out, I found out that VS 2010 does not provide IntelliSense for files with the .less extension. That actually got me frustrated and I decided not to use DotLess until VS 2010 provides IntelliSense someday.

Jon Galloway's video What MVC Developers Should Know About HTML and CSS talks about HTML/CSS and some handy tips including DotLess, and he mentioned something about a T4 template by Phil Haack that would allow me to use .less.css extension and then it does something to generate the proper CSS file.

I went to Phil's blog and located the post in which he talks about that T4 template. There are no direct links to the T4 template and the links are dead in his blog post which is relatively outdated (2009).

Does anyone have ANY solution to this issue? I really want to use the DotLess library, but I do not want to lose the IntelliSense.

Companionship answered 22/3, 2011 at 21:8 Comment(0)
C
7

For some reason, I found out the solution right after I posted this question. Here are two threads from StackOverflow that talk about this issue and provide solutions that actually work:

Open a file in Visual Studio's CSS Source Editor

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

P.S: I used the solution proposed by Noah Richards and it works perfectly.

Well, I'm sorry about that, the lesson I learned from this thread is to look much better for answers before posting next time.

Companionship answered 22/3, 2011 at 21:25 Comment(2)
Thanks for adding the info. You should probably accept your own answer, since mine is only partial.Watchword
@Bernhof: I will. But it says I cannot accept my own answer before two days.Companionship
W
3

The link in the blog should point at http://www.dotlesscss.org/

Check out the t4css*.zip files at https://github.com/dotless/dotless/downloads which contain the .tt file (T4 template)

If you're wondering what a T4 template is, have a look at this.

Watchword answered 22/3, 2011 at 21:17 Comment(0)
M
3

I use http://www.mindscapehq.com/products/web-workbench to get 'less' intellisense in visual studio.

Morley answered 27/2, 2012 at 12:28 Comment(0)
W
1

http://maghansson.blogspot.com/2011/12/aspless-and-sharepoint-2010.html

Here's instructions how to download the package for dotless and get all the benefits of intellisense and other functions

Whirlwind answered 15/12, 2011 at 9:12 Comment(1)
Lone link is considered a poor answer since it is meaningless by itself and target resource is not guaranteed to be alive in the future. It would be preferable to include the essential parts of the answer here, and provide the link for reference.Unlash

© 2022 - 2024 — McMap. All rights reserved.