Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to make Visual Studio 2010 autocomplete selectors based on my HTML markup?

Imagine I have this:

<div id="wrapper">
</div>

In my CSS file, when I type in:

#

Is there a way to make Visual Studio show me intellisense of all id's in my HTML markup?

like image 324
Only Bolivian Here Avatar asked Aug 22 '11 13:08

Only Bolivian Here


People also ask

How do I create an autocomplete in Visual Studio?

The suggestion list of Automatic completion appears as soon as you start typing a new identifier. The suggestion list of Basic completion appears when you press the default Visual Studio IntelliSense shortcut Ctrl+Space . If necessary, you can always return to the Visual Studio's native's IntelliSense.

How do I enable IntelliSense in Visual Studio 2010?

The fix was to look in Visual studio menu: Resharper > options Then select IntelliSense > General -> use IntelliSense features of: Visual Studio.

How do I enable IntelliSense in Visual Studio?

To access this options page, choose Tools > Options, and then choose Text Editor > C# > IntelliSense.


1 Answers

Actually Visual Studio itself doesn't provide an inbuilt functionally to autocomplete classes or ids.

Luckily there is a plugin which is providing this feature: http://www.jetbrains.com/resharper/ I'm using it and it provides me with a list of classes or ids like intellisense.

like image 170
Fabian Avatar answered Oct 21 '22 13:10

Fabian