Alan Budzinski
Alan Budzinski

Reputation: 809

What is the most effective way in Visual Studio 2012 to find css for a particular id or class

I was wondering what is the quickest way of navigating to a css class or id for a given html element in Visual Studio. There are so many windows/shortcuts etc, but I noticed that Visual Studio is lacking the ability to quickly navigate to the proper css from the html code. Am I missing something here? I need to go to css page then do a ctrl + f type in the name of my id/class and that is what I do. Is there any better way to do this?

Upvotes: 3

Views: 1347

Answers (1)

Steven V
Steven V

Reputation: 16595

Remember, Visual Studio is much more than a HTML/CSS editor so things in that area can get a little rough. But, if Visual Studio can figure out which CSS files are included on an HTML page you can hit F12, or right click on it and select "Go To Definition".

If all else fails, just use the Find/Replace and select "Entire Solution" or "Current Project" and search.

Upvotes: 3

Related Questions