Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I get Visual Studio to provide Intellisense and syntax coloring for Less Css?

Tags:

I am experimenting with Less Css, and I am using Visual Studio 2010.

It would be nice if the editor provided support for syntax highlighting and Intellisense for Less, for instance coloring and suggesting variables. What are my options to get that to work ? Do I need to write a plugin for it, or how would one go about adding this to VS ? Does anything exist for this already ?

like image 358
driis Avatar asked May 02 '10 16:05

driis


People also ask

How do I get IntelliSense on Visual Studio?

You can trigger IntelliSense in any editor window by typing Ctrl+Space or by typing a trigger character (such as the dot character (.) in JavaScript).

How do I create an autocomplete in Visual Studio?

Go to Tools | Options | Text Editor | C/C++. This dialog displays a window that allows you to toggle Automatic brace completion. Automatic brace completion is the feature where, when you type { , a corresponding } is automatically typed for you.

What does IntelliSense do in Visual Studio?

IntelliSense is a code-completion aid that includes a number of features: List Members, Parameter Info, Quick Info, and Complete Word. These features help you to learn more about the code you're using, keep track of the parameters you're typing, and add calls to properties and methods with only a few keystrokes.


2 Answers

If you are using Visual Studio 2012 you can use Web Essentials 2012. It uses syntax highlighting similar to Visual Studio's CSS syntax highlighter. It compiles to CSS on save.

enter image description here

Update

  • 2.4-2.5 Less syntax highlighting was disabled
  • As of 2.6 Less syntax highlighting was turned back on
  • As of 3.8 Less syntax highlighting is disabled for VS2012.

like image 148
FarFigNewton Avatar answered Sep 28 '22 00:09

FarFigNewton


http://www.mindscapehq.com/products/web-workbench

Update (07 Mar 2012)

After a week or so of using this, I have uninstalled it due to:

  1. Annoying nagging adverts telling you to upgrade
  2. A weird bug that stopped me being able to save my .less files intermittently
like image 40
Chris Haines Avatar answered Sep 28 '22 00:09

Chris Haines