简体   繁体   English

从IntelliJ IDEA中的代码完成中排除JavaScript库

[英]Exclude javascript library from code completion in IntelliJ IDEA

Is there a way to exclude a Javascript library from code completion in IntelliJ IDEA without excluding it from the module? 有没有办法从IntelliJ IDEA中的代码完成中排除Javascript库而不将其从模块中排除呢? If I exclude it from the module sources, Idea does not process it in artifacts anymore. 如果我从模块源中排除它,那么Idea将不再在工件中对其进行处理。

I need the Javascript library in deployment, but it pollutes auto-completion. 我需要在部署中使用Javascript库,但是它会污染自动补全功能。

Finally found a solution: 终于找到了解决方案:

Right-click the Javascript file in project window, choose "Mark as plain-text". 在项目窗口中右键单击Javascript文件,选择“标记为纯文本”。 Also works for CSS. 也适用于CSS。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM