StyleCop Visual Studio 片段

发布于 2024-08-11 12:15:41 字数 142 浏览 7 评论 0原文

我正在寻找一些 Visual Studio 片段来实现样式警察规则。

例如,当 style cop 返回一个错误,指出我的代码需要文档标头时,拥有一个为我创建此标头的代码片段会很有用。

有谁有任何实施 stylecop 规则解析的片段吗?

I'm looking for some Visual Studio snippets for implementing style cop rules.

For instance when style cop returns an error saying my code needs a documentation header it would be useful to have a snippet that creates this header for me.

Has anyone got any snippets for implementing resolution to stylecop rules?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

和影子一齐双人舞 2024-08-18 12:15:41

我使用 GhostDoc 作为您在示例中引用的标题注释。它工作完美。 GhostDoc

I use GhostDoc for the header comments that you are referring to in your example. It works flawlessly. GhostDoc

无法回应 2024-08-18 12:15:41

这是自动解决 stylecop 错误的最佳方法: http://www.codeplex.com/StyleCopForReSharper

显然,你需要重新磨刀

This is the best way to automatically resolve stylecop errors: http://www.codeplex.com/StyleCopForReSharper

You'll need resharper, obviously

少年亿悲伤 2024-08-18 12:15:41

嗯...

就文档标题而言,尝试在声明之前的行中键入 /// 。

Well...

In terms of documentation header try typing /// on the line preceeding a declaration.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文