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.
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".
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.
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.
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With