【问题标题】:Will code completion in .js files work using atom-typescript plugin for atom?.js 文件中的代码完成是否可以使用 atom-typescript 插件为 atom 工作?
【发布时间】:2015-10-10 03:19:36
【问题描述】:

我有一个打字稿定义文件https://github.com/borisyankov/DefinitelyTyped/blob/master/arcgis-js-api/arcgis-js-api.d.ts。我在 atom 编辑器中使用了 atom-typscript 插件,并且在使用 import/require 时能够在 .ts 文件中完成代码。如何在 .js 文件(在 amd 中)中获得代码完成工作?有可能吗?

【问题讨论】:

    标签: javascript typescript atom-editor


    【解决方案1】:

    如何在 .js 文件(在 amd 中)中完成代码完成工作?有可能吗?

    不使用原子打字稿。 VSCode 和 WebStorm 支持使用 .d.ts 文件为 .js 文件提供智能感知。

    已请求但不在 atom-typescript 的计划中:https://github.com/TypeStrong/atom-typescript/issues/315

    【讨论】:

      猜你喜欢
      • 2017-01-26
      • 2018-08-08
      • 2015-12-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多