2013-02-08 35 views
0

如何配置stylecop或resharper以在执行“清理代码”时不添加无意义的评论?stylecop/resharper配置不添加评论

OK(KEEP/NICE TO HAVE):

具有区域标志:

#region Public Properties 

REMOVE:

/// <summary> 
    /// Gets or sets the description. 
    /// </summary> 

OR

/// <summary> 
    /// The _context. 
    /// </summary> 
    private static HttpContextBase _context; 
+0

这些都不是“毫无意义的意见” - 你的意思,以填补他们与你的对象的信息。摘要标签中的信息是智能感知中的消费者看到的物品等。 – 2013-02-08 11:29:57

+0

了解。但我仍然需要删除它。谢谢 – ShaneKm 2013-02-08 11:36:58

回答

0

在Reshaper->选项 - >工具 - >代码清理,修改或创建一个新的清理配置文件,并取消选择所有Stylecop->文档项目:

enter image description here