Javascript和VS2012 Intellisense [英] Javascript and VS2012 Intellisense

查看:101
本文介绍了Javascript和VS2012 Intellisense的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Visual Studio 2012和Javscript编码的新手.我有两个问题,无法在网上找到答案:

I am new to Visual Studio 2012 and Javscript coding. I have two questions i could not find answers on the web:

  1. 我有一个webforms项目,并向sript-folder(http://raphaeljs.com/)添加了一些js文件.现在,我想为我添加的js库提供Intellisense支持.有可能吗?

  1. i have a webforms project and added some js-files to the sript-folder (http://raphaeljs.com/). Now i want to have Intellisense support for that js-library i added. Is that possible?

在scripts文件夹中的"_references.js"文件是什么?我已将所有js库文件添加到该文件中,但未启用智能感知.

for what is the "_references.js" file in the scripts folder? I added all the js-library files to that file but it doesn't enable intellisense.

致谢

推荐答案

我不确定Visual Studio 2012,但是在2010年,如果将一个JavaScript文件拖到另一个JavaScript文件上,则会在第二个文件的顶部.如果引用的文件已记录在案,您将获得相当有用的智能感知,尽管即使只是为了能够浏览API的表面,它仍然很方便.

I'm not sure about Visual Studio 2012, but in 2010, if you drag one JavaScript file onto another one it will add a /// <reference name="MyScript.js" /> line at the top of the second file. If the file being referenced is documented you will get quite useful intellisense, though it is still handy even if not for just being able to explore the surface of the API.

此问题中有一些很好的信息: IntelliSense for Visual Studio中的Ajax和JavaScript库

There is some good information in this question: IntelliSense for Ajax and JavaScript libraries in Visual Studio

这篇关于Javascript和VS2012 Intellisense的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆