要在UI做到這一點(從PyCharm 2.7.3進行測試,結果顯示在PhpStorm 6.0.3):
添加JavaScript庫
文件→設置
(項目設置)→ JavaScript →庫
[添加...] →
名稱:node_modules
Visiblilty:[X]當前項目
[附...]
{選擇項目的node_modules文件夾}
{重複涼亭}
Excl UDE文件夾從Project
(項目設置)→項目結構
上的文件夾→右鍵單擊[排除]
從項目的做到這一點。IML文件:
更改項目的.iml
以下幾點:
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/bower_components" />
<excludeFolder url="file://$MODULE_DIR$/node_modules" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="node_modules" level="application" />
<orderEntry type="library" name="bower_components" level="application" />
</component>
</module>
引起排除node_modules和bower_components,但使它們可用於完成和庫搜索
在PyCharm,的IntelliJ測試的編輯器, WebStorm。
請注意,在WebStorm 7 EAP中對此進行測試後,我發現這不起作用。我提交了[錯誤報告](http://youtrack.jetbrains.com/issue/WEB-8926),JetBrains說它將使用WebStorm 7 EAP build 130.1710。 –
我的副本中也沒有修復。 – Shane