Stefan Debattista
Stefan Debattista

Reputation: 11

Can I use intellisense for CSS in ASP.net 2010?

I've just installed Visual Studio 2010, but I cant seem to manage to get intellisense working to suggest classes.

Upvotes: 1

Views: 276

Answers (4)

jasonk
jasonk

Reputation: 1570

As an aside to the same issue. If you are using ReSharper to enhance the intellisense, you may have to reinstall it to update the VS2010.

Upvotes: 0

Kris van der Mast
Kris van der Mast

Reputation: 16613

Create a simple .aspx webform, drag and drop from the solution explorer the .css file. Go to source view and write something like this:

<span class="

then normally you should get intellisense. Same goes for the CssClass properties for server controls.

If you however try to include your .css file in a dynamic way by code then you could end up not getting intellisense.

Upvotes: 0

WSkinner
WSkinner

Reputation: 2217

Make sure to try and click "ctrl+space" to force intellisense

Upvotes: 1

James Gaunt
James Gaunt

Reputation: 14783

Short answer is yes, intellisense for CSS does work in ASP.net 2010, so if it's not for you then you have an install or configuration problem.

Upvotes: 1

Related Questions