2017-05-01 25 views
0

我已經下載underscoreasync在IntelliJ中爲我的項目定義了一個類型化的庫,並且這兩個庫都支持Node.JS Core支持。對於UnderscoreJS的Definitely Typed Stubs的IntelliJ支持

IntelliJ Preferences Screen

我能夠得到underscoreJs方法的建議和解決顏色異步方法,但不是。

async and underscore methods in different colorunderscoreJS method as unresolved in IntelliJ

IntelliJ IDEA的版本,2017年1月2日

UnderscoreJs版本1.8.3

所以我的問題是 我如何可以添加underscoreJS的支持呢?

回答

0

工作正常,我

enter image description here

Ctrl+click_ - 你採取什麼定義?

enter image description here

+0

它帶我到這條線在我的文件'變種_ =要求(「下劃線」);' –

+0

你用什麼下劃線和想法版本?隨着理念2017.1.2 +下劃線1.8.3,我甚至不需要安裝打字稿存根 - 下劃線方法可以從'/ node_modules/underscore/underscore.js'正確解析。 – lena

+0

您是否在'庫'中添加了'node_modules' '項目首選項'中的'Javascript'?你可以發一個類似於我的問題中第一張圖片的截圖嗎? –