Is it able to exclude dir globally?
Answered
Hi,
I want to exclude a XXX dir automatically/golbally, like the ignore file and directory configuration in the IDEA settings.
Because our project has a XXX dir which is huge, more than 100G. Presently, it takes minutes to open the project, then I have the ablity to exclude XXX. If I ignore XXX dir, then I would not be able to view them in the project view. So I'd like to find a way to open the project fast and still can watch the exclude dir.
Is there a extension point to implement this?
thanks
Please sign in to leave a comment.
Leon,
What about adding the given directory to the module's excluded folders?
You can o it programmatically with the snippet provided here:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/360008137000-Mark-directory-as-excluded-programmatically?page=1#community_comment_360001593799
@Jakub Chrzanowski
Yes,we should exclude it programmatically. But I am not sure where is the right place.
Exclude it on project open event? or other event?
It seems IGNORE DIR function activate before project opened.
You can give a shot with ProjectManagerListener, because I assume that such a feature should be project-dependent.