1

I hate that VS intellisense tries to autocomplete nested selectors as attributes.

How can I disable just this feature for LESS?

-OR-

How can I disable LESS intellisense entirely?

roydukkey
  • 160
  • 1
  • 11
  • Is renaming the file acceptable? You could also try [ReSharper](http://www.jetbrains.com/resharper/) (costly but trial available). – harrymc Apr 04 '14 at 19:10
  • 1
    No unfortunately not. Most of the time I'm in git environment and need to maintain the `.less` extension. I'm also only using VS Express so there is no support for extensions. – roydukkey Apr 04 '14 at 19:20
  • VS Express is pretty limited. There are [other IDEs](http://stackoverflow.com/questions/5829732/ide-with-syntax-highlight-support-for-less). – harrymc Apr 04 '14 at 20:05
  • 1
    Yes. That's true, but I'm developing pre-compiled C#.NET 4.0 applications with pre-build events, and I'm comfortable with VS. I have tried MonoDevelop, but wasn't too keen of some of its design choices. – roydukkey Apr 04 '14 at 20:15
  • Do you wish you turn off intellisense completely? This should be in menu Tools > Options > Text Editor > LESS > General. – harrymc Apr 05 '14 at 10:00
  • Yup. However, "Auto list members" is grayed out. – roydukkey Apr 05 '14 at 16:44
  • Try anyway to click on it. It's sometimes greyed out but still enabled. Try the same with "All Languages". – harrymc Apr 05 '14 at 18:49
  • Try setting [this registry parameter](http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.shell.providelanguageserviceattribute.showcompletion.aspx) for LESS to off. For the list of all language parameters [see this](http://msdn.microsoft.com/zh-cn/library/bb166421%28v=vs.90%29.aspx). – harrymc Apr 05 '14 at 19:28
  • Humm... According to the reg paths described at the links, my registry doesn't contain any of my current configured settings form VS. I tried adding some of the examples and wasn't getting anything to work. – roydukkey Apr 05 '14 at 20:31
  • Probably VS Express doesn't use them. Seems like Microsoft is successful in handing out a limited product to get people to like it enough to buy the real stuff when the time comes for more advanced work. My conclusion from this exercise is that your options are: (1) Live with it, (2) Move to another IDE (at least for LESS), (3) Buy VS or MSDN so you can use the extensions created for LESS (the best ones are of course commercial). – harrymc Apr 05 '14 at 21:38
  • I summarized our discussion as an answer. – harrymc Apr 07 '14 at 08:58
  • @roydukkey You could consider SharpDevelop. It feels pretty close to VCS Express. Well, I think it's closer than MonoDevelop, anyway. – Bob Apr 07 '14 at 09:11

1 Answers1

1

You could try to map the .less extension to a different type of editor to change the Intellisense experience. A valid options could 'Script Editor' or as shown below. (Visual Studio Express 2013)

On the menu, go to

Tools -> Options -> Text Editor -> File Extension

enter image description here

Once you have done the mapping, editing .less files would be just like editing normal source code text files.

MFT
  • 703
  • 5
  • 8