charlie_pl
charlie_pl

Reputation: 3094

Exclude folders from indexing in Intellij maven project using wildcard

Is it possible to exclude folders from indexing using wildcard? In my project it is just impossible to mark all /target folders as excluded. There is just too much of them. That leads to freezes during project rebuild.

EDIT (thanks to @Arham)

Progress is tracked with those issues:

https://youtrack.jetbrains.com/issue/IDEA-127753

https://youtrack.jetbrains.com/issue/IDEA-150784

For simpler things, like ignoring all target folders in project you can use:

Settings|Editor|FileTypes|Ignore files and folders

Upvotes: 2

Views: 1223

Answers (1)

Arham
Arham

Reputation: 2102

I found a way to exclude files of certain extensions.

I have configured my project on Windows to be in sync with my Linux box.

I use sftp tool provided by IntellijIdea to sync files and folders .

To configure sftp deployment goto Tools-> Deployment -> Configuration

To exclude files goto Tools- > Deployment -> Options -> Exclude items by name

This helps me in excluding certain files from getting synced from my Linux box to windows.

I guess even if your structure is not same as mine, just create a dummy deployment configuration for your existing project and that should work.

Upvotes: 2

Related Questions