Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exclude logs folder in Maven/Intellij Idea project

I have a 'logs' directory on the same level as my project is and Intellij Idea, and I can open these logs from Idea. Files in this directory are a couple of gigs, so when I try to search a string in a project it results into a minute or so search, whereas I expect it to be instant. So I mark it as 'Excluded' in Idea.

The problem is that every time there is a change to pom and project is reloaded, I need to mark this dir as 'Excluded' again. So it's becoming a bit annoying because sometimes I forget to do this.

There is a similar question: Exclude folder in intellij idea using Maven. However I'm not using this plugin, because it would be easier for me to always mark this folder as Excluded in Idea on every pom change.

like image 244
Andrey Chaschev Avatar asked Oct 25 '13 08:10

Andrey Chaschev


People also ask

How do I ignore a folder in IntelliJ?

You can also just right click on your folder and select Mark Directory As > Excluded . Excluded folders (shown as rootExcluded) are ones that IntelliJ IDEA "partially ignores".

What is excluded directory IntelliJ?

In this field, the path to a file or directory to be excluded from compilation is shown. Recursively. For a directory: select this option to exclude from compilation all the corresponding subdirectories. Alt+Insert. Use this icon or shortcut to add a file or directory to the list.

How do I exclude a package in IntelliJ?

You can use ⌥⏎ (macOS), or Alt+Enter (Windows/Linux), to show context actions and exclude completion options that you don't want to be displayed in the future.


1 Answers

Go to Settings/File Types and in the bottom you will see ignore files & folders field. Use ; as delimiter and write files and folders you want to omit from idea processing. But doing so you will lose ability to edit or see this files/folders using idea.

like image 95
Aliaksei Yatsau Avatar answered Oct 12 '22 09:10

Aliaksei Yatsau