Is it possible to exclude certain files from the TODO function in PhpStorm? For example, I'm using the highcharts javascript library. I don't want to see the few dozen or so TODO's they have marked mixed in with my own. I don't want to exclude this directory, because I still want to be able to view the files in a convenient manner.
相关问题
- How to connect PhpStorm with Xdebug
- Double click to select white space in PhpStorm
- PhpStorm relative path to resource root
- Laravel and phpStorm integration - “cannot resolve
- Xdebug post requests with PhpStorm
相关文章
- PHPStorm Code Hinting for array of object arrays
- PhpStorm does not sync with the server
- How to disable autocompletion for quotation marks
- PHPStorm + PHPUnit Color output
- PhpStorm v2017.3.4 & Codeception v2.4.0 incompatib
- laravel 5 ide autocompletion
- crossbrowser opacity mixin for .less
- Is there a keyboard shortcut to select current lin
To exclude code (usually composer dependencies) from analysis.
Screenshot example below:
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.
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.
File > Settings > Scope
add a new scope and make sure the files you like are green.View > Tool Windows > TODO
(Alt + 6)Scope Based
Custom Local Scopes