开发者

Dealing With Different Coding Conventions/Styles In Visual Studio

I'm working on two different projects - both in VB.NET/Visual Studio 2008 (as much as I'd like to move to 2010).

I find I'm confusing the different coding standards that I'm supposed to follow. IE - Project1 wants variables named in a Hungarian-style notation like 'iSomeValue'; the does not want a prefix. One project requires an _ prefix on private class-level va开发者_JAVA百科riables - etc...etc...

Are there any tools I can integrate with VS 2008 that will let me easily swap between pre-defined styles and format my code for me?


ReSharper

You can set the name format for every type of member declaration, spacing, etc. You can import and export code style settings. You can choose to

a. use the style for every solution you open
b. share the style with your team for a given solution
c. store in a file on a per-solution basis.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜