【问题标题】:Can I get intellisense for chrome apps and extensions?我可以获得 chrome 应用程序和扩展程序的智能感知吗?
【发布时间】:2014-02-24 22:33:52
【问题描述】:

有没有办法获得 javascript IntelliSense 在 Visual Studio 2012 中开发 Google Chrome 应用程序和扩展程序?

【问题讨论】:

    标签: visual-studio-2012 google-chrome-extension google-chrome-app javascript-intellisense


    【解决方案1】:

    您可以包含在 GitHub 上找到的此文件:chrome.intellisense.js

    将文件放在与您正在处理的文件相同的目录中,并在源文件的顶部添加以下行。

     /// <reference path="chrome" />
    

    这也适用于 VS 2013,并且应该适用于 Visual Studio 2010 和 2013,但未经测试。

    【讨论】:

      【解决方案2】:

      reddit找到解决方案

      使用以下内容创建文件jsconfig.json

      {"typeAcquisition": {"include": ["chrome"]}}
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-08-29
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多