JetBrains .gitignore Template

The full, current JetBrains .gitignore template — copy it as-is, or head to the .gitignore Generator to merge it with other stacks into one file.

Template

# Covers JetBrains IDEs: IntelliJ, GoLand, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# AWS User-specific
.idea/**/aws.xml

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn.  Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# SonarLint plugin
.idea/sonarlint/
# see https://community.sonarsource.com/t/is-the-file-idea-idea-idea-sonarlint-xml-intended-to-be-under-source-control/121119
.idea/sonarlint.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based HTTP Client
.idea/httpRequests
http-client.private.env.json

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

# Apifox Helper cache
.idea/.cache/.Apifox_Helper
.idea/ApifoxUploaderProjectSetting.xml

# Github Copilot persisted session migrations, see: https://github.com/microsoft/copilot-intellij-feedback/issues/712#issuecomment-3322062215
.idea/**/copilot.data.migration.*.xml

What each entry does

Why every line in this template is excluded, not just what it matches.

Entry Why it's excluded
.idea/**/workspace.xml Files matching .idea/**/workspace.xml — a generated or machine-specific file type for this stack, safe to regenerate rather than track.
.idea/**/tasks.xml Files matching .idea/**/tasks.xml — a generated or machine-specific file type for this stack, safe to regenerate rather than track.
.idea/**/usage.statistics.xml Files matching .idea/**/usage.statistics.xml — a generated or machine-specific file type for this stack, safe to regenerate rather than track.
.idea/**/dictionaries Excludes .idea/**/dictionaries — generated or machine-specific for this stack, not something to track in version control.
.idea/**/shelf Excludes .idea/**/shelf — generated or machine-specific for this stack, not something to track in version control.
.idea/**/aws.xml Files matching .idea/**/aws.xml — a generated or machine-specific file type for this stack, safe to regenerate rather than track.
.idea/**/contentModel.xml Files matching .idea/**/contentModel.xml — a generated or machine-specific file type for this stack, safe to regenerate rather than track.
.idea/**/dataSources/ A generated/local directory (.idea/**/dataSources) — excluded because its contents are either build output or machine-specific state, not source you'd want to review in a diff.
.idea/**/dataSources.ids Files matching .idea/**/dataSources.ids — a generated or machine-specific file type for this stack, safe to regenerate rather than track.
.idea/**/dataSources.local.xml Files matching .idea/**/dataSources.local.xml — a generated or machine-specific file type for this stack, safe to regenerate rather than track.
.idea/**/sqlDataSources.xml Files matching .idea/**/sqlDataSources.xml — a generated or machine-specific file type for this stack, safe to regenerate rather than track.
.idea/**/dynamic.xml Files matching .idea/**/dynamic.xml — a generated or machine-specific file type for this stack, safe to regenerate rather than track.
.idea/**/uiDesigner.xml Files matching .idea/**/uiDesigner.xml — a generated or machine-specific file type for this stack, safe to regenerate rather than track.
.idea/**/dbnavigator.xml Files matching .idea/**/dbnavigator.xml — a generated or machine-specific file type for this stack, safe to regenerate rather than track.
.idea/**/gradle.xml Files matching .idea/**/gradle.xml — a generated or machine-specific file type for this stack, safe to regenerate rather than track.
.idea/**/libraries Excludes .idea/**/libraries — generated or machine-specific for this stack, not something to track in version control.
cmake-build-*/ A generated/local directory (cmake-build-*) — excluded because its contents are either build output or machine-specific state, not source you'd want to review in a diff.
.idea/**/mongoSettings.xml Files matching .idea/**/mongoSettings.xml — a generated or machine-specific file type for this stack, safe to regenerate rather than track.
*.iws Files matching *.iws — a generated or machine-specific file type for this stack, safe to regenerate rather than track.
out/ A generated/local directory (out) — excluded because its contents are either build output or machine-specific state, not source you'd want to review in a diff.
.idea_modules/ A generated/local directory (.idea_modules) — excluded because its contents are either build output or machine-specific state, not source you'd want to review in a diff.
atlassian-ide-plugin.xml Files matching atlassian-ide-plugin.xml — a generated or machine-specific file type for this stack, safe to regenerate rather than track.
.idea/replstate.xml Files matching .idea/replstate.xml — a generated or machine-specific file type for this stack, safe to regenerate rather than track.
.idea/sonarlint/ A generated/local directory (.idea/sonarlint) — excluded because its contents are either build output or machine-specific state, not source you'd want to review in a diff.
.idea/sonarlint.xml Files matching .idea/sonarlint.xml — a generated or machine-specific file type for this stack, safe to regenerate rather than track.
com_crashlytics_export_strings.xml Files matching com_crashlytics_export_strings.xml — a generated or machine-specific file type for this stack, safe to regenerate rather than track.
crashlytics.properties Files matching crashlytics.properties — a generated or machine-specific file type for this stack, safe to regenerate rather than track.
crashlytics-build.properties A file Unity's Crashlytics integration writes at build time — build-time-generated, not source.
fabric.properties Files matching fabric.properties — a generated or machine-specific file type for this stack, safe to regenerate rather than track.
.idea/httpRequests Excludes .idea/httpRequests — generated or machine-specific for this stack, not something to track in version control.
http-client.private.env.json Files matching http-client.private.env.json — a generated or machine-specific file type for this stack, safe to regenerate rather than track.
.idea/caches/build_file_checksums.ser Files matching .idea/caches/build_file_checksums.ser — a generated or machine-specific file type for this stack, safe to regenerate rather than track.
.idea/.cache/.Apifox_Helper Files matching .idea/.cache/.Apifox_Helper — a generated or machine-specific file type for this stack, safe to regenerate rather than track.
.idea/ApifoxUploaderProjectSetting.xml Files matching .idea/ApifoxUploaderProjectSetting.xml — a generated or machine-specific file type for this stack, safe to regenerate rather than track.
.idea/**/copilot.data.migration.*.xml Files matching .idea/**/copilot.data.migration.*.xml — a generated or machine-specific file type for this stack, safe to regenerate rather than track.