Visual Studio 2015 Go To Definition for CSS class missing - css

When I right-click on a css class in an html file in Visual Studio 2015 Enterprise edition, i don't see the option to "Go To Definition". Nothing happens if I press F12 either. Intellisense works, but I have no easy way of finding where the class referenced is actually defined.
I've restarted VS, and also looked at a colleague's setup that works fine and can't see a difference. I know it's not the end of the world, but any help much appreciated.
Thanks.

There are a couple of solutions both 'Extensions and Updates' to Visual Studio:
Web Essentials by Mads Kristensen at Microsoft. This provides F12 'go to definition' and Alt+F12 for 'peek definition'.
Productivity Power Tools 2015 by Microsoft. Similar to the above providing Ctrl + Click to Peek Definition / Go To Definition.
My preference would be Web Essentials as I found one of the other power tools features 'Solution Error Visualizer' a bit buggy.
As to your colleague's set up hard to say. Out of the box visual studio sometimes installs web essentials by default.

Related

How to get ASP.NET Web Application (.NET Framework) for c#?

I have just downloaded the VS Community 2019 Version 16.3.9 and I can't seem to find the ASP.NET Web Application(.NET Framework) with the C#. It just only starts with the VB script by default. What should I do to get the same thing with C#.
Probably, you did not download the needed tools after installation.
To download necessary tools, launch the Visual Studio Installer (not the IDE), click on modify, there, you will see myriads of tools, just select the ones you need and download. After successful download, open your IDE and choose your desired framework to work on.
Wish you success.
Sorry for adding this as an answer even though it will help you but nevertheless, I should have added it as a comment but I have less than 50 reputations

Visual Studio 2013 debug not stepping in

I am developing a web application on Visual Studio 2013. On older versions, whenever there is a bug in the web app, I moved from the browser to the visual studio to the line where the code is.
Now, whenever there is a bug, I just see it in the browser without being able to see it in the Visual Studio. As if the debugger is not able to step into my code.
This has been going on for all my web projects which makes me feel that it is a setting in VS but I am not able to locate it.
can anyone help?
I was able to find out what was wrong here.
it seems that for some reason, under Debug in the main menu and under Exceptions, nothing was checked! I checked ALL "Common Language Run-time Exceptions" and it worked for me.
However, you need to spend sometime there in the debugging list. If you enable ALL, you will get all sort of exceptions captured.

Cannot load ClassDiagram.cd on Visual Studio. "URI formats are not supported"

When I try to open a class diagram for my asp.net webforms project I get the following error. The Class Diagram (.cd) files get generated but I can't open them.
I do have some classes that use the URI class but i don't really think that could be the issue. Right? Why would a class diagram care about one of my classes using a URI datatype?
I'm using vb.net Visual Studio 2012 and the project is targeting .net 4.0. I'm aware there is another question in stack overflow asked about the same issue, however there were no answers posted to it and it's close to a year old.
Help will be greatly appreciated, thank you.
I had the same problem and was able to fix it in Visual Studio 2012 Professional just now for a website I am working on with my team.
This is not about one of your classes using the URI data type.
My setting under "WEBSITE" in Visual Studio was previously set to "Use IIS Express". When it is set this way, you can select the alternative option, again under "WEBSITE" which is "Use Visual Studio Development Server". I'm not certain, but I think this is what the other posters describe above when they say "open web site in file system mode". When I am not using IIS Express, the class diagram generates, is not blank, and opens fine for viewing in the IDE.
Please open web site in file system mode (and not in IIS express ) and it will work.
when you load the website, visual studio will tell you that it is already using IIS Express to serve websites do you want to continue using it or not, select no so that you can use visual studio and bot the IIS. my things worked after that

IDE Suggestion required.Envionment : ASP.NET-VB-JAVASCRIPT

I am working on a ASP.Net project creating a Outlook like calendar scheduler app.
I need to implement javascript on the webpages, but VS 2005 that I am using now is not very helpful, like intellisense or debugging,etc.. in case of javascript. I am planning to use jQuery in the app too.
Questions :
Is there some feature of VS 2005 that helps in javascript, that i dont know, or should I move to VS 2008 (is it better than VS 2005 in this regard?) ?
And also tell me a good IDE to practice javascript, in a HTML-Javascript environment. I am not going to use Rails or PHP or python.
Thanks.
It would be helpful for you to provide details on what sort of "help" you're looking for.
VS2008 has better JavaScript support than VS2005 in general, including JavaScript debugging. Here's a link from Scott Guthrie about VS2008 JavaScript support.
With jQuery, you can add intellisense to Visual Studio to help you out. Here's another link to a post from Scott Guthrie about enabling the intellisense.
I agree that VS 2008 is much better for the environment you are considering, as you can easily add intellisense support for jQuery. VS 2008 can also debug inside it's own webserver or IIS which means that it's very easy to test your environment.
For our projects we use VS 2008 and code using the MVC framework which has incorporated jQuery. I run each web project inside the debug environment before we deploy to IIS for final testing. I use firebug to debug JS in Firefox, Chrome and safari have their own debuggers and VS 2008 handles IE for me.
Another nice feature of VS 2008 is the ability to publish projects to a specific location copying only the required files. I wouldn't want to publish to a live environment but to create the required files within the final testing environment first is a much needed time saver.
Regarding your second question, RubyMine is a great environment for writing JavaScript - great IntelliSense, and it teaches you best practices, too (something that Visual Studio lacks).
It's quite funny that this isn't that much advertised on the product highlights page (it's in brackets, heh)...

How to make visual studio 2008 ASP.NET designer faster?

Visual studio designer for asp.net applications is generally very slow and i would like to know if there are any tips or guidelines for settings in order to get better.
The problem is usually noticed when i try to make a change in design or source view, especially in source view it may get non-responding for a couple of seconds.
I experienced a very similar issue when I first installed Visual Studio Team System 2008 Development Edition. I have issues with VS design view and could not switch to "Split View"
Reference the following ASP.NET thread link to see if any of this information helps..(Warning: It is quite long).
Do you notice any difference when starting in Safe Mode?
devenv.exe /SafeMode
I assume that you have already installed the hotfix for VS2008 ASP.Net Designer performance issues? Link

Resources