Join Stack Overflow to learn, share knowledge, and build your career.

Email Sign UpOR SIGN IN WITH

 Google
 Facebook
 

I'm trying to add libraries to "External Libraries". I've added them in Setting -> Javascript -> Libraries and they are highlighted now as "(library home)", but they are not added to external libraries which allows code inspection and TODO's to work for them.

What is the difference between "library home" and "External Libraries" and how do I make a library external?

asked Nov 21 '14 at 10:18
AngularInDepth.com

30.6k1260150
 
1  
I don't really know how it works in WebStorm, but in PhpStorm the stuff listed under External Libraries would be: 1) PHAR files; 2) folders from Settings | PHP | Include paths (folders that are not part of the actual project but still referenced for code completion: e.g. libraries installed globally). Quite likely it's the same here: global npm modules or whatever. So I guess when you reference a library that is physically located outside of the project, it should be listed there. – LazyOne Nov 21 '14 at 10:25 
    
Thanks, LazyOne. You seems to be right about when you reference a library that is physically located outside of the project, it should be listed there. I added such library to libraries and it is indeed is listed under External Libraries. You can make it as an answer here so I can accept it. – AngularInDepth.com Nov 21 '14 at 10:52
    
So the question now is why TODOs are shown for libraries that are not external (located within a project). Do you know if it's the expected behavior? I'd assume that once I mark files as library no inspection should take place there regardless of the location (within the project or external) – AngularInDepth.com Nov 21 '14 at 10:54 
1  
AFAIK -- Yes, it's expected (for "local" libraries). But that's very easy to bypass in TODO window. – LazyOneNov 21 '14 at 11:00
1  
Correct -- using it myself. My only hope would be to have JB implementing separate scope for that themselves which will include only "normal" code and will exclude excluded/generated/libraries content automatically. – LazyOne Nov 21 '14 at 11:56

In PhpStorm the stuff listed under External Libraries branch will include:

  • PHAR files
  • folders from Settings | PHP | Include paths (folders that are not part of the actual project but still referenced for code completion: e.g. libraries installed globally).

Quite likely it's the same here in WebStorm for JavaScript libraries: global npm modules or whatever. So I guess when you reference a library that is physically located outside of the project, it should be listed there.

answered Nov 21 '14 at 11:58
LazyOne

88.1k14203205
 

Your Answer

 
 
 
 
 

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged intellij-idea phpstorm webstorm or ask your own question.

asked

3 years ago

viewed

10,006 times

active

2 years, 1 month ago

 
Work from anywhere

 
Stack Overflow requires external JavaScript from another domain, which is blocked or failed to load.

How to add libraries to “External Libraries” in WebStorm/PhpStorm/Intellij的更多相关文章

  1. 【转载】Android Studio 导入External Libraries

    转载: 世军  Android Studio 导入External Libraries http://www.cnblogs.com/shijunzhang/p/5625432.html 导入本地Li ...

  2. External Libraries中没有Maven的jar包的原因(已解决)

    **深坑!** ## External Libraries中没有Maven的jar包的原因(已解决) 2021年3月1日 --- 搭建一个新项目 IDEA 从 Git 上拉 拉去Maven项目然后 m ...

  3. IDEA的Maven依赖如何引入到External Libraries中

    现象 在Apollo项目中,遇到了一个问题.当在Module的pom.xml中引入依赖: <dependency> <groupId>com.ctrip.framework.a ...

  4. IDEA External libraries 不显示Maven中引入的repository

    原文:https://blog.csdn.net/dj_dengjian/article/details/88668012 记录一下遇到的这个问题的解决方法,也是困惑了半天,感觉这是maven的bug ...

  5. maven 下载 jar 包速度慢时,可以自己手动下载 jar 包,然后粘贴到 External Libraries 中

    maven 下载 jar 包速度慢时,可以自己手动下载 jar 包,然后粘贴到 External Libraries 中

  6. 【转】你是不是也被Android Private Libraries、Referenced Libraries、android Dependency搞晕了~~

    一.v4.v7.v13的作用和用法 1.Android Support V4, V7, V13是什么? 本质上就是三个java library. 2.为什么要有support库?   是为了解决软件的 ...

  7. web App libraries跟referenced libraries的一些问题

    该博文内容经参看网上其他资料归纳所成,并注明出处: 问题一:myeclipse中Web App Libraries无法自动识别lib下的jar包(http://blog.csdn.net/tianca ...

  8. Android Studio-导入External Libraries

    1.导入本地Libraries 1 拷贝 gson-2.3.1.jar(gson-2.3.1.jar为例)到 app/libs 目录下 2 在app/build.gradle的 dependencie ...

  9. Creating a Message Queue in PHP Without External Libraries

    w http://www.ebrueggeman.com/blog/creating-a-message-queue-in-php

随机推荐

  1. ORACLE常用数值函数、转换函数、字符串函数介绍

    ORACLE常用数值函数.转换函数.字符串函数介绍. 数值函数: abs(m) m的绝对值 mod(m,n) m被n除后的余数 power(m,n) m的n次方 round(m[,n]) m四舍五入至 ...

  2. [Flutter] 支持描边效果的Text

    新版的flutter已经自带这个功能了.TextSyle 中一个shadow . 目前flutter中没找到很好的办法给Text增加描边.自己扩展了一个TextEx,可以实现简单的描边效果,能满足大部 ...

  3. 25. instr用法

    很多时候,我们要进行字符串匹配,在SQL语句中,我们通常使用like来达到我们搜索的目标.但经过实际测试发现,like的效率与instr函数差别相当大.下面是一些测试结果: select instr( ...

  4. jquery 隐藏 显示 动画效果

    <!DOCTYPE html> <html> <head> <script src="/jquery/jquery-1.11.1.min.js&qu ...

  5. vue基础——事件处理

    监听事件 可以用 v-on 指令监听dom事件,并在触发时运行一些JavaScript代码. 示例: <div id="example-1"> HTML <but ...

  6. WP runtime post 请求, json 解析

    https://monkeyweekend.wordpress.com/2014/10/23/how-to-send-text-json-or-files-using-httpclient-posta ...

  7. objective C, parse json时注意事项

    例: dict为从API请求返回的json调用 NSJSONSerialization JSONObjectWithData:方法得到的NSDictionary实例. 当执行以下语句时linkStri ...

  8. attr 修改IMG src

    jQuery修改img的src的方法:$("#img_id").attr("src","new_src"); 定义和用法 attr() 方法 ...

  9. iOS Hardware Guide

    来自U3D文档 Hardware models The following list summarizes iOS hardware available in devices of various g ...

  10. Gearman简介

    gearman,从名字上看叫做“齿轮工”,就是通过齿轮把不同的组件组合在一起.通常,多语言多系统之间的集成是项目开发中一个比较头疼的问题.一般会采用RPC风格或者是REST风格的WebService. ...