views:

565

answers:

6

Is There a Coding Standard document available for download from Microsoft ? I want to use their standards.

+1  A: 

MSDN is a great place to start a search for anything related to programming on Windows. You can start with:

Remember there is no one size that fits all and conventions/standards change from team-to-team, language being used etc.

dirkgently
+5  A: 

Also look at Microsoft Developer Center: Patterns and Practices, though some of that is more high-level than just coding standards.

Dale Halliwell
+3  A: 

If you're using C#, you can learn Microsoft's preferred style as you code by running StyleCop on any code that you write. It's a lot easier to learn that way than trying to absorb some huge document.

Jonny Cundall
+1 for a good suggestion. If you have Resharper there is a really good add-in that integrates StyleCop rules into the Resharper syntax highlighting - very cool: http://stylecopforresharper.codeplex.com/
rohancragg
A: 
rohancragg
A: 

If you wants guidelines published by Microsoft, google them or use links in other answers.

But if you want "standards used in Microsoft's own code" - there isn't a single answer. Microsoft is a big company with many divisions and acquired code, so each project or product has it's own style.

Even style of .NET Framework itself is slightly different from what StyleCop suggests.

My point is, paying more attention to those guidelines and white papers than Microsoft itself does might be not be a good idea.

ima