Maybe what I'm looking for doesn't exist, but I've heard rumors that in TFS you can setup some way of auto formatting/Stylizing source code on check ins. So far in the research I've done it looks like the "Check in Policy" just sends alerts if your check in is flagged... Is there some way that the code can be auto-formatted upon check in or is this just wishful thinking? Could you please provide/link to examples.
In my team, we have implemented a Check-in Policy that execute AStyle.exe on all code before check in, You can download AStyle from sourceforge. Yes, we are some that like all the code in the projects to have the same formatting and style, and yes it is easy to do with shortcuts in VS. The benefit of doing the styling before check-in is that when you are comparing versions of the same file, the format hasn't changed depending on developer that did the check-in.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With