[英]Webstorm: how to exclude javascript from code completion in typescript project
I have a project where most of my code is Typescript and it is obviously compiled to Javascript. 我有一个项目,其中大部分代码是Typescript,并且显然已编译为Javascript。 The problem is that code completion uses both Typescript and Javascript so it usually shows two sources for one class and doesn't show type errors. 问题在于代码完成同时使用Typescript和Javascript,因此它通常为一个类显示两个源,并且不显示类型错误。
The question is how can I remove a folder with compiled Javascript from being indexed by code completion? 问题是如何从代码完成索引中删除包含已编译Javascript的文件夹?
UPD: I'm using upcoming Webstorm 7 EAP UPD:我正在使用即将发布的Webstorm 7 EAP
Right click on the folder that contains your compiled javascript and select " Mark Directory As " then " Excluded ". 右键单击包含已编译的javascript的文件夹,然后选择“将目录标记为 ”,然后选择“已排除 ”。
WebStorm will hide the directory from the project view, stop indexing it for searches and code completion, and not include it in code refactoring tracing. WebStorm将在项目视图中隐藏目录,停止对索引进行搜索和代码完成,并且不将其包括在代码重构跟踪中。 I tend to mark all build output as ignored and ensure that WebStorm is only worrying itself with the source. 我倾向于将所有构建输出标记为已忽略,并确保WebStorm只担心源代码本身。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.