如何让 .js 和 .js.map 文件滚动为 .ts 文件下的子文件 [英] How to get .js and .js.map files rolling to be sub files under .ts file

查看:33
本文介绍了如何让 .js 和 .js.map 文件滚动为 .ts 文件下的子文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一堆 .js 和 .js.map 文件,这些文件没有汇总到相关的 .ts 文件下,这使得找到我感兴趣的文件变得更加困难.

I had a bunch of .js and .js.map files that weren't rolled up under there associated .ts files which made it a lot harder find the files I was interested in.

在使用 Webstorm 之前,我在这个项目上尝试了 Eclipse 和 TypEcs 插件(我认为是导致我问题的原因).

Before using Webstorm I tried Eclipse and TypEcs plugin on this project (which I think is what led to my issue).

推荐答案

分组关系在运行文件观察器时建立并存储在缓存中.由于缓存失效/升级到不同版本/等,它们会丢失.要恢复它们,您需要为您的项目重新运行观察程序:选择一个项目根文件夹,按 Ctrl+Shift+A -> Ctrl+Shift+A 启用非菜单操作 -> 键入运行文件"-> 选择运行文件观察器....您可以在设置 | 中为插件 | 文件观察器 | 运行文件观察器"操作指定自定义快捷方式.键盘映射使此过程不那么复杂.有一张票(WEB-7635)需要根据观察者设置维护嵌套,所以关系是根据观察者设置自动建立的,无需重建一切.

The grouping relations are established when running file watchers and stored in caches. They are lost as a result of caches invalidating/upgrading to different version/etc. To restore them, you need to re-run watchers for your project: select a project root folder, hit Ctrl+Shift+A -> Ctrl+Shift+A to enable non-menu actions -> type "run file " -> choose Run File Watchers.... You can assign custom shortcut for "Plugins | File Watchers | Run File Watchers" action in Settings | Keymap to make this procedure less complicated. There is a ticket (WEB-7635) that requires maintaining nesting according to watcher settings, so that the relationships are auto-established based on watcher settings, without a need to rebuild everything.

这篇关于如何让 .js 和 .js.map 文件滚动为 .ts 文件下的子文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆