WebStorm/PhpStorm exclude file from search everywhere

烈酒焚心 提交于 2021-01-27 06:21:16

问题


When I search everywhere I would like to exclude JS and js.map files from the search results. ( I am using TypeScript ). My expected behaviour is to have these files omitted from Search Everywhere.

Yes, I can mark the files as plain text, but that's cumbersome on a per file basis.

I have used scopes:

I have researched these links:

  • PHPStorm exclude files by mask from indexing
  • How to exclude file from PhpStorm global search (Ctrl+Shift+F)

What am I missing? Can this be done?


回答1:


You can exclude particular directory from your project. Go:

Settings > Directories

after that select desired directory and press "Excluded" button.



来源:https://stackoverflow.com/questions/37222399/webstorm-phpstorm-exclude-file-from-search-everywhere

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!