Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In PHPStorm is there a way to avoid indexing *.phar files?

I know how to exclude meta and log files from index inclusion but in my application's composer.json I have both Guzzle and Goutte listed as dependencies. Goutte includes a goutte.phar which in turn contains the source code for Guzzle. So when I go to use autocompletion I get this:

PHPStorm finds a PHP class twice because it indexes a *.phar file

Is there anyway to exclude a *.phar file (or any specific PHP file for that matter) from the PHPStorm indices?

like image 727
jcroll Avatar asked Feb 14 '14 14:02

jcroll


2 Answers

otherwise you can add *.phar to Settings -> Editor -> File types -> Ignored files and folders

Ignored files and folders

or alternatively to Settings -> Directories -> Exclude files

Directories

like image 138
Pavel Alazankin Avatar answered Sep 28 '22 07:09

Pavel Alazankin


Right click on that file and select mark as -> excluded?

like image 25
Valdas Avatar answered Sep 28 '22 09:09

Valdas