>>>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 ?
>
>Yes, I believe it is. For a WebAPI app the jquery and knockout libraries are added by default, but I think you have to add other libraries manually in order for them to show up globally for intellisense and object search.
>
>In this case, I needed a way to have *all* js files be part of intellisense and object search since I was examining a complex app written by somebody else and was trying to figure out what routines were defined in moment.js or TrafficCop.js or amplify.*.js etc. or just in another script he had created for the app ( a UOW etc )
>
>In the training videos John Papa - who is using Resharper which will find anything in the project - was just hitting F12 and boom - he went to the referenced object. And while he said "or you can right-click and Go to Definition" neither one was working for me on calls outside of standard jquery or knockout.
>
>That said, I am going to buy Resharper now. Can't have too many cool tools :-)
I've had ReSharper for quite some time. I do find the number of 'short-cuts' a bit overwhelming - and the codes are not, at least for me, particularly intuitive. I probably only use a small percentage of its capabilities - but it is definitely worth having....
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only