Skip to content

CSS Intellisense in Visual Studio 2008

by Phil on May 27th, 2008
Why is it always the tiny issues that cost the most time?

I started a new solution in VS2008 today and thought I’d put together the framework for the main theme. With CSS file created, I went to add the styles to the body tag and horror: there was no intellisense.

I live by intellisense. I hate writing all my CSS manually and usually want to scroll through other properties if I can’t decide which to use. Not having it makes me feel exposed, vulnerable and afraid…

Well ok, it’s not quite that bad, but it’s very frustrating. The problem? I type a class name or html property, add the opening brace and hit enter. Normally I’d be presented with a list of CSS properties, but this time: nothing. Tab doesn’t give me anything either.

The solution is the Indenting selection in the IDE options. Specifically:
Tools > Options > Text Editor > CSS > Tabs >

Check that the Indenting is set to Smart. Apparently, anything else means you’re doing it yourself.

From → Development

8 Comments
  1. Surat permalink

    Thank a lot, I’m very frustrating till found you article. :)

  2. thank god, i thought i was going crazy. god knows why they defaulted this to off in 2008 after years of me getting used to it in 05!

  3. kiarash permalink

    thanks ! it saved my life :D

  4. Dave permalink

    Cheers for that.

  5. @Dave & @kiarash: You’re welcome. Glad it helped!

  6. Todd permalink

    AMEN, thank you !

    Bloddy MS, how insane.

  7. I’m sure there was a very compelling design reason behind the choice. Can’t for the life of me fathom what it might have been, though.

  8. What a strange Easter egg. Struggling to fix it, I saw the tab option but thought it had nothing to do with it. When I began searching for a bug, luckily I found your blog. THANKS!

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS