Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以限制查找用途的文件类型扩展名?
*.ts例如,在使用 TypeScript 执行查找用法时,仅查看在文件中找到的用法很有用,*.js应排除这些文件:
*.ts
*.js
您可以在此处使用范围。在 Settings/Scopes 添加一个仅包含 .ts 文件的新范围,然后选择您的类,点击 Ctrl+Alt+Shift+F7 (Edit | Find | Find usages settings) ,选择上面的范围作为“Find Usages”中的范围对话