So far we've been putting things like this into your personal `~/.gitignore` file rather than the project one considering that the choice of IDE is a personal one.  Plus you will only need to do it once rather than for each project.