Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Javascript-GotoDefinition and Intellisense VS2012
Message
De
22/03/2013 06:44:14
 
 
À
21/03/2013 17:55:25
Information générale
Forum:
ASP.NET
Catégorie:
Visual Studio
Divers
Thread ID:
01568986
Message ID:
01569008
Vues:
32
>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)

Isn't the _references.js file now created automatically by the project template ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform