Stack Overflow

  1. Questions
  2. Developer Jobs
  3. Tags
  4. Users
Log In Sign Up

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

How to add libraries to “External Libraries” in WebStorm/PhpStorm/Intellij

Ask Question

up vote8down votefavorite

2

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?

enter image description hereenter image description here

shareimprove this question
 
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

1 Answer

activeoldestvotes

up vote14down voteaccepted

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.

shareimprove this answer
 

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.

STACK OVERFLOW
  • Questions
  • Jobs
  • Developer Jobs Directory
  • Salary Calculator
  • Help
  • Mobile
STACK OVERFLOW
BUSINESS
  • Talent
  • Ads
  • Enterprise
COMPANY
  • About
  • Press
  • Work Here
  • Legal
  • Privacy Policy
  • Contact Us
STACK EXCHANGE
NETWORK
  • Technology
  • Life / Arts
  • Culture / Recreation
  • Science
  • Other

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

转载于:https://www.cnblogs.com/SofuBlue/p/8029127.html

How to add libraries to “External Libraries” in WebStorm/PhpStorm/Intellij相关推荐

  1. idea项目怎么jdk和scala同时显示在External Libraries下?

    idea项目怎么jdk和scala同时显示在External Libraries下? 在project settings下的modules下的Dependencies的右边"+"添 ...

  2. 【maven】idea左侧External Libraries里,没有Maven的依赖包 代码飘红

    文章目录 1.概述 M.参考 1.概述 因为内网开发,然后这几天我被隔离了,然后公司搞了一个外网的vpn能连接的云桌面,云桌面也是网络隔离的,因此只能自己拷贝相关的文件到里面. 然后我就拷贝了代码和m ...

  3. IDEA导入Gradle项目后,重现构建项目并导入jar包后但是External Libraries目录中无任何引入的jar包

    问题描述:IDEA导入Gradle项目后,重现构建项目并导入jar包后但是External Libraries目录中无任何引入的jar包,并且后台报"java.lang.AbstractMe ...

  4. intellji External Libraries下依赖包找不到解决方法

    文章转载自:https://blog.csdn.net/longchena/article/details/77848653 遇到intellji External Libraries下的依赖包找不到 ...

  5. External Libraries中有包,但是运行还是找不到xxx程序包

    External Libraries中有包,但是运行还是找不到xxx程序包 springboot程序无论是从网站上下载再导入还是重新创建,最后运行都失败了,为此我找遍了csdn上所有的可用的办法,但还 ...

  6. Idea Project文件目录不见了,只剩External Libraries 和 **imi文件

    问题:idea报错Module "GitCGBIV2103Projects" must not contain source root "D:\JT-SOFT\GIT\G ...

  7. idea2021 maven External Libraries只有jdk包没有Maven引入的包

    问题描述 从svn上把项目检索下来,正确配置好maven地址后发现很多spring的包无法找到,但maven仓库中又存在此类包.如图 External Libraries中就只有jdk的包不存在mav ...

  8. java 拓展包放哪,安装扩展包(Install External Libraries)

    在CDH平台上为Streamsets导入扩展包前, 先设置一个用来存储这些扩展包的目录 在Cloundera管理平台界面中, 选择StreamSets服务 然后点击Configuration. 在 C ...

  9. android开发误删External Libraries下文件恢复问题

    吐血提示!! 手上项目为了兼容第三方解决冲突,删除了原有的aar包所有相关的,后要恢复,发现将aar放到libs包下,build里面也添加了 implementation(name: 'xx', ex ...

  10. FAQ:IDEA中maven导包Dependencies Libraries有的包External Libraries没有

    当我们新打开一个maven时idea左边的External Libraries中并没有同时把依赖也导进去 解决方法:在IDEA右侧的Maven projects中对应的Module名称上右键,选择Re ...

最新文章

  1. 让对方qq崩溃的代码2020_解决 KUbuntu 18.04 下 Deepin Wine QQ 运行十分钟后崩溃的问题...
  2. Java黑皮书课后题第2章:2.5(金融应用:计算小费)编写一个程序,读入一笔费用与小费利率,计算小费和总钱数
  3. matlab mex gcc 支持c99
  4. php如何删除服务器图片,php如何删除服务器文件
  5. Web前端和后端的区别是什么?如何区分?
  6. css选择器([class*= icon-], [class^=icon-] 的区别)
  7. Open3d之ubuntu18.04源码编译open3d
  8. Hermite多项式
  9. 2022安徽合肥经济技术开发区招聘社区工作者冲刺试题及答案
  10. 幅频特性曲线protues_短学期--功率放大器电路图设计及Proteus仿真
  11. 计算机硬件只能通过软件使用,日常软件分享 篇四:还在用鲁大师?查看电脑硬件信息可以用这些免费的软件!...
  12. swagger注解的使用
  13. React中useEffect与生命周期钩子函数的对应关系
  14. 计算机里不显示硬盘图标,Win7不显示硬盘图标怎么办?不显示硬盘图标修复方法...
  15. java打砖块源码_java打砖块
  16. python小玩具(恶俗古风生成器)
  17. python里面else什么意思_python中if else和if elif else有什么区别?
  18. c语言电子万年历大作业,C语言实现一个简单的电子万年历
  19. win7系统服务print spooler 无法启动解决方法(开启及关闭方法)
  20. 【C进阶】第十篇——数据在内存中的存储

热门文章

  1. multism中ui和uo应该怎么表示_第310 这四个常考英语单词,到底表示时间还是地点?...
  2. 镀铬亮条怎么修复_「日系之光」曾经的亚洲C级车排面,十二代丰田皇冠全面修复日记...
  3. mysql重点知识提取
  4. HTML表格(table)属性--左右(colspan)、上下(rowspan)合并、合并边框、位置 部分内容
  5. .tar文件和.tar.gz文件
  6. PotPlayer优化与最高画质设置(最强本地播放器)
  7. Error creating bean with name 'rocketMQTemplate' defined in class path resource
  8. MongoDB 数据集合导出 与 导入
  9. @RequestMapping、@GetMapping、@PostMapping、@PutMapping、@DeleteMapping、@PatchMapping详解
  10. c语言 屏幕亮度调节_4096级屏幕亮度调节:改善安卓机自动亮度调节顽疾