PHPStorm excludes masked files from indexing

I have a PHP project which for some reason (not my initiative) has some backup files like "somefile - backup.php". How to exclude %% backup% .php from indexing?

+7
phpstorm
Jun 18 '13 at 11:58 on
source share
2 answers

Settings/Preferences | Editor | File Types | Ignore files and folders Settings/Preferences | Editor | File Types | Ignore files and folders at the bottom - add the *-backup.php template (or any other template you need).

PLEASE NOTE: this affects all projects, as this is an IDE parameter.

enter image description here




Alternatively (have not tried myself, but should work):

Settings/Preferences | Editor | File Types | Recognized File Types | Text

Add the *-backup.php template.

This will also affect all projects .. but instead of throwing it, it will process them as text files, so there is no indexing / code completion / syntax highlighting / etc, still having such files in the Project View tree (so you can edit / delete / upload / etc, if necessary).

+26
Jun 18 '13 at 12:23
source share

"Settings> File types> Ignore files and folders" and add the path to the folder.

Example: *.lib;client/build;

This helped me ignore the folder.

+4
Oct 07 '14 at 1:38
source share



All Articles