Skip to content Skip to sidebar Skip to footer

Javascript And Vs2012 Intellisense

I am new to Visual Studio 2012 and Javscript coding. I have two questions i could not find answers on the web: i have a webforms project and added some js-files to the sript-folde

Solution 1:

I'm not sure about Visual Studio 2012, but in 2010, if you drag one JavaScript file onto another one it will add a /// <reference name="MyScript.js" /> line at the top of the second file. If the file being referenced is documented you will get quite useful intellisense, though it is still handy even if not for just being able to explore the surface of the API.

There is some good information in this question: IntelliSense for Ajax and JavaScript libraries in Visual Studio

Solution 2:

To put it short, Visual Studio is terrible at intelli-sense for javascript. It is still light years behind other IDEs like IntelliJ & WebStorm.

A work around to slap it in line would be to use ReSharper which is a plugin but you need to pay for the license :(

Hope that helps.

Post a Comment for "Javascript And Vs2012 Intellisense"