Annoying whitespace changes in project and module files

There are three developers on my team here and we use CVS for version control. We're getting very annoying whitespace changes all the time in our project files (ipr and iml files). What happens is that the project files show up as being modified but the actual change is only adding/removing whitespaces to the beginning of each line.

Is there any way of adjusting this in IDEA so that all our setups use the same amount of whitespace in our project files? What setting is it that controls this?

Kind regards, Stefan Freyr.

0
6 comments

We've run into this and i believe this happens when you try to 'Reformat' the .ipr or .iml file. The reformat strips any whitespace at the end of an empty xml tag (' />'), whereas IDEA saves these files WITH the whitespace.

Our workaround is to never Reformat .ipr or .iml files (which sometimes means committing them separately).

HTH, lasitha.

0

Our workaround is to never commit the developer's config files. We do keep up to date ones in another directory though when we need to add Jars and the like. This comes from IDEA keeping track of open files in these files and the mass amounts of conficts during merges.

Patrick

0

IDEA should never touch the IML files as long as there are no real
changes to them. This was better a few builds ago I think. I came to the
conclusion that IDEA finally let the IML files alone while not editing
anything but it seems - I might be wrong of course - that those IML
files get changed (i.e. get red in CVS) much more frequently again for
no obvious reason in the latest builds.

Michael

Patrick Burleson wrote:

Our workaround is to never commit the developer's config files. We do keep up to date ones in another directory though when we need to add Jars and the like. This comes from IDEA keeping track of open files in these files and the mass amounts of conficts during merges.

Patrick


0

We don't seem to have this problem so much with the .iml files as we have it with the .ipr files.

Anybody know if this has been reported as a bug? Should I file an issue?

Kind regards, Stefan Freyr.

0

Did a very quick search
Found nothing
Filed a bug (http://www.intellij.net/tracker/idea/viewSCR?publicId=27996)
Going to bed.

0

Fixed in next release :D

0

Please sign in to leave a comment.