简体   繁体   English

在IntelliJ IDEA中,如何在使用TypeScript时从“查找使用情况”结果中过滤出JS文件?

[英]In IntelliJ IDEA, how can you filter JS files out of “Find Usage” results when using TypeScript?

Is there a way to configure IntelliJ IDEA so that when you transpile code from TypeScript to Javascript, it ignores the Javascript files in search results and most importantly omit them in Find Usages results? 有没有一种方法可以配置IntelliJ IDEA,以便当您将代码从TypeScript转换为Javascript时,它会忽略搜索结果中的Javascript文件,最重要的是在“ 查找用法”结果中忽略它们。

In doing so, however, it would also be important to keep JS results that are NOT transpiled from TypeScript (ie: the ones originally written in JS, not TS). 但是,这样做时,保持未从TypeScript转换的JS结果(即:最初用JS而不是TS编写的结果)也很重要。

在Angular2-typescript项目上工作时如何在WebStorm中隐藏.js和.map文件通过使用此处所述的第一个答案,您可以排除本机JS文件,并似乎包含所有其他JS文件。

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

相关问题 如何(使用 React JS web)和 Firestore,你能找出聊天室(在 Firestore 数据库上)何时收到新消息? - How to (using React JS web) and Firestore, can you find out when a chatRoom (on the Firestore Database) receives new messages? IntelliJ IDEA 无法识别 Javascript/Typescript 文件中的特定数据库架构 - IntelliJ IDEA does not recognise specific database schema in Javascript/Typescript files 将打字稿的 .map 文件输出到 IntelliJ IDEA 中的特定文件夹 - Output .map files for typescript to specific folder in IntelliJ IDEA Intellij找不到.js文件(类搜索) - Intellij can't find .js files (class search) 使用IntelliJ IDEA 14将多个js文件编译为一个缩小的文件 - Compile multiple js files into one minified file using IntelliJ IDEA 14 如何在IDEA Intellij中配置新文件的创建 - How to configure creation of new files in IDEA Intellij 无法使用 IntelliJ IDEA 链接从 Kotlin/JS 项目生成的 JS 脚本 - Can't link a JS script generated from a Kotlin/JS project using IntelliJ IDEA 如何像在Typescript中一样在js文件中导入模块? - How to import modules in js files as you do in typescript? IntelliJ IDEA JS文件中当前插入符号位置(函数/类)的路径 - IntelliJ IDEA path to current caret position (function/class) in JS files 你能为IntelliJ IDEA推荐免费的javascript插件吗? - Can you suggest free javascript plugin for IntelliJ IDEA?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM