Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Reformatting of code

I work on several projects. CDT is only one of them. I'd prefer not to have per project requirements for this. It's too hard to keep straight.

I also have format on save turned on to make sure I format all the code I touch. I recommend everyone do the same and use the default Java formatter. Then this will be less of an issue over time as we get all or code formatted the same.


On Tue, Mar 15, 2016 at 10:13 AM, Marc Khouzam <marc.khouzam@xxxxxxxxxxxx> wrote:

I would like to suggest a procedure when reformatting entire java files for CDT.

Personally, I use the git history very much, so reformatting has an impact on that.
Merging local changes can also become quite painful.
I recently spent over an hour merging a local change into a file that had been
fully reformatted. This does not feel like time well-spent.  And it's not enjoyable either.

I suggest that either:
1- we simply avoid reformatting
2- if justified, any file reformatting be done in its own commit



cdt-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top