Visual Studio Code & JetBrains IDE .gitignore Template
Developers on a team use different editors (VS Code, Cursor, IntelliJ, WebStorm, PyCharm). This template ignores personal workspace files while optionally keeping shared launch and task configurations.
| 1 | # Visual Studio Code |
| 2 | .vscode/* |
| 3 | !.vscode/settings.json |
| 4 | !.vscode/tasks.json |
| 5 | !.vscode/launch.json |
| 6 | !.vscode/extensions.json |
| 7 | *.code-workspace |
| 8 | |
| 9 | # JetBrains (IntelliJ, WebStorm, PyCharm, PhpStorm) |
| 10 | .idea/ |
| 11 | *.iws |
| 12 | *.iml |
| 13 | *.ipr |
| 14 | out/ |
| 15 | |
| 16 | # Sublime Text |
| 17 | *.sublime-workspace |
| 18 | *.sublime-project |
| 19 | |
| 20 | # Eclipse |
| 21 | .project |
| 22 | .classpath |
| 23 | .settings/ |
Key Rules & Why They Are Ignored
!.vscode/settings.jsonWhitelists team-shared formatter settings (e.g. Prettier/ESLint on save) while ignoring personal user state.
.idea/JetBrains editor workspace cache and local indexing files.
Already Committed Ignored Files? Purge from Git Cache
Adding a pattern to .gitignore does NOT delete files that were already tracked in previous commits. Run this command to remove them from tracking without deleting your local copies:
git rm -r --cached . && git add . && git commit -m "Untrack ignored files"Frequently Asked Questions About IDEs (VS Code & JetBrains) .gitignore
Frequently Asked Questions
Everything you need to know regarding specifications, syntax, and security best practices.
Yes, if your project provides pre-configured debugging setups (e.g. Node inspect, Python debug, or Docker attach) for the team.