Visual Studio Intellisense for Custom javascript function

若如初见. 提交于 2019-12-05 22:19:31

You can include Intellisense in following two ways,

  1. Add a JavaScript file to the global Visual Studio references
  2. Add the reference directly to the top of the Javascript file

Add a .js file to the global references

Add a reference to the JS file in Tools -> Options like this,

Make sure to chose Implicit (Web) in the Reference Group dropdown. Otherwise it won't take effect for web projects.

Reference Link: http://madskristensen.net/post/improved-javascript-intellisense-in-visual-studio

Add the reference directly to the top of the .js file

You can add the reference directly to the top of the Javascript file with the relative path as below.

/// <reference path="../scripts/jaydata.js" />
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!