最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Does Visual Studio 2017 support a _references.js file? - Stack Overflow

programmeradmin3浏览0评论

my JavaScript Intellisense is broken in Visual Studio 2017. I know my _references.js file is correct as JS Intellisense works fine in VS2015.

Any help is greatly appreciated!

my JavaScript Intellisense is broken in Visual Studio 2017. I know my _references.js file is correct as JS Intellisense works fine in VS2015.

Any help is greatly appreciated!

Share Improve this question asked Mar 8, 2017 at 0:07 webbersmakwebbersmak 1831 silver badge4 bronze badges 2
  • Did you used the VS 2017 RC or VS 2017 RTM version which was released on March 7? How did you added the _references.js file into your project? – Sara Liu - MSFT Commented Mar 8, 2017 at 9:25
  • I am using VS 2017 RTM version which was released on March 7. I added _references.js file by right clicking on "scripts" folder and adding new JavaScript file. I also notice that window.intellisense doesn't exist!! – webbersmak Commented Mar 8, 2017 at 16:47
Add a comment  | 

1 Answer 1

Reset to default 21

You no longer need a _references.js file. IntelliSense in VS 2017 works a little differently than it used to.

Are you trying to use a specific library or just get IntelliSense from your own code? If it's a library, it needs to have a .d.ts file. If it is your own code, it might depend on if you are using a module system or not.

You can read more about how it works here: https://learn.microsoft.com/en-us/visualstudio/ide/javascript-intellisense

发布评论

评论列表(0)

  1. 暂无评论