Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is there a way to specify a centralized list of references for IntelliSense?

0
Posted

Is there a way to specify a centralized list of references for IntelliSense?

0

Unfortunately, not right now. Short of writing your own ScriptManager or similar code, there’s no “built-in” way to specify a centralized list of references for IntelliSense (or for the runtime). There’s no web.config location for this (as “CurlyFro” asked) nor is there a Tools Options list you can set. However, there is a fairly useful trick that is worth mentioning. You can create a JS file with no code (let’s call it “list.js”) that contains solely a list of commonly used references (the XML comment type) at the top. Instead of putting a list of individual references on top of each JS file, you can simply include just a reference to “list.js”. The meta-point here is that references originating from a script (not HTML/ASPX) file are transitive. If A references B, and B references C and D… A effectively references B,C, and D. Having the centralized file saves you from updating 100’s of files when you add one more script to your project. As mentioned above, Master Pages serve as a un

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123