Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Javascript-GotoDefinition and Intellisense VS2012
Message
De
21/03/2013 17:55:25
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Visual Studio
Titre:
Javascript-GotoDefinition and Intellisense VS2012
Divers
Thread ID:
01568986
Message ID:
01568986
Vues:
56
J'aime (1)
I'm sure almost everyone else knows this but maybe it will save one person some frustration:

While studying the js scripts in John Papa's Code Camper app (highly recommended) I could not get F12 or the right-click Go to Definition to work on javascript objects. Was trying to figure out as I looked at each js script where the stuff being used was defined,and there were at least 50 scripts that were candidates.

Finally caught on that if you drag a script from Solution explorer onto the script you are looking at then it will be part of a definition search. Great,for jquery or jquery-ui but do I want to drag 50 scripts onto each script I am examining.???

Solution : adding all references to a script called _reference.js will make all the scripts referenced available globally for intellisense and object definition search. (each added, including /// by just dragging from Solution Explorer. )

Hope this saves somebody some time and frustration.

( BTW, the _references.js does not have to be included into the project, it is strictly a design time thing)


Charles Hankey

Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy

Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.

-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin

Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform