BeetleJuice
BeetleJuice

Reputation: 40946

WebStorm PhpStorm: how to skip specific extensions from indexing

WebStorm / PhpStorm IDEs allow the user to mark certain directories as "excluded", so that they will not be indexed and the classes contained will not show up in autocomplete etc... (see here)

Is it possible to mark specific extensions as excluded. All my components have a pair of files such as:

my.component.ts  <-- actual component
my.component.spec.ts <-- for testing only

I've seen this doc about how to exclude an individual file, but that doesn't scale well. I would like all the .spec.ts files to be ignored by the indexer because they pollute a lot of the autocomplete UI and slow down my work.

Upvotes: 1

Views: 388

Answers (1)

lena
lena

Reputation: 93898

Since WebStorm/PhpStorm 2017.2 it will be possible to exclude files by pattern - see IDEA-127753. Note also that you can use Ignore files and folders option to exclude certain files by name ( see https://youtrack.jetbrains.com/issue/IDEA-127753#comment=27-868409 )

Upvotes: 3

Related Questions