PhpStorm Ignore files/directories in TODO feature

耗尽温柔 提交于 2019-12-01 02:39:37

Yes, you can -- via custom scope that would include all but unwanted files/folders (Settings | Scopes) and then just choose it in TODO window.

Check these articles for details:

P.S.
This functionality is available since v6 only.

  1. In File > Settings > Scope add a new scope and make sure the files you like are green.
  2. Open TODO Tab View > Tool Windows > TODO (Alt + 6)
  3. In the top of TODOs click on Scope Based
  4. Below select your new scope from step 1 below Custom Local Scopes

To exclude code (usually composer dependencies) from analysis.

  • Right click on desired folder
  • Click 'Mark Directory As'
  • Click 'Excluded'

Screenshot example below:

For libraries, there is a one click solution as I have just found out.

You can use the "External Libraries" feature to include the specific library folder, after which PHPStorm / IDEA will mark the folder as a library home and exclude it from inspection.

Note that you can include folders inside your project directroy, even though it's called "External" Libraries.

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