是否有符合所有 StyleCop 要求的标准 ReSharper 代码样式定义?
ReSharper 重新格式化代码功能非常方便和灵活,特别是 JetBrains 在 3.0 版本中添加了新的代码布局模板灵活性。
ReSharper 是否有一组标准的代码样式设置,与 Microsoft StyleCop 强制执行的规则相匹配,所以StyleCop 合规性可以像运行 ReSharper“重新格式化代码”功能一样简单吗?
The ReSharper reformat code feature is very handy and flexible, particularly with the new code layout templating flexibility JetBrains have added in version 3.0.
Is there a standard set of code style settings for ReSharper which match the rules enforced by Microsoft StyleCop, so that StyleCop compliance can be as easy as running the ReSharper "reformat code" feature?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我正在寻找同样的东西。
这是一个自定义类型成员布局:
基于此布局,这对我来说没有成功,但值得称赞的是:http://www.clydesdalesoftware.net/blogs/jluif/CommentView,guid,1875594b-0d23-401f-8e22-f1cbf87beefe.aspx
这是一个符合 stylecop 的标头片段:
虽然还没有完全实现,但它是一个开始。
由于这个答案,自定义类型成员布局已放入 StyleCop for resharper 插件中。 请参阅此处
I am looking for the same things.
Here is a Custom Type member layout:
based on this one, that did not do the trick for me but who deserves the credit: http://www.clydesdalesoftware.net/blogs/jluif/CommentView,guid,1875594b-0d23-401f-8e22-f1cbf87beefe.aspx
This is a header snippet that complies to stylecop:
Still not quite there but it is a start.
Since this answer the Custom type member layout has been put in the StyleCop for resharper plugin. See here
尝试使用 ReSharper StyleCop 插件:http://www.codeplex.com/StyleCopForReSharper
Try the ReSharper StyleCop plugin at: http://www.codeplex.com/StyleCopForReSharper