Code styles


Code styles

Here’s a tip for anyone who may be configuring a tool (such as ReSharper) to reformat code.

First create a reference source code file based on your standards. Include every element you can.

Now check this document into source control.

Once you have it saved, run the reformat on it.

Finally, compare the reformatted document with the version in source control. If they’re identical (including whitespace), you’re done - distribute the configuration to your team.

Your Host:
Copyright © 2000-2013 by William Sorensen. All rights reserved.