# Ignores the whole .idea folder and all .iml files
# See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360

.idea/

# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023

*.iml
modules.xml
.idea/misc.xml
*.ipr

# Sonarlint plugin
.idea/sonarlint

# Ignores the whole .idea folder and all .iml files
# See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360

.idea/*

# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023

*.iml
modules.xml
.idea/misc.xml
*.ipr

# Sonarlint plugin
.idea/sonarlint

Add asterisk to enable exclusion of custom/specific files inside .idea directory
Add asterisk to enable exclusion of custom/specific files inside .idea directory

Withouth askterisk one cannot exclude folders like ".idea/runConfigurations" from gitignore. Checking shared run configurations into repo is a common practice for many teams. With asterisk folders like these can be easily excluded in the "### Custom declarations ###" section located at the end of the generated .gitignore. Detailed discussion: https://gist.github.com/hieblmedia/9318457

Example:

### Intellij+all Patch ###
# Ignores the whole .idea folder and all .iml files
# See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360

.idea/*

...

### Custom declarations ###

# Share run configurations
!/.idea/runConfigurations/