resharper - Rehsarper 2018.2.3 Disbale 在摘要和单行注释之间插入新行
问题描述
我找不到正确的设置来禁用在文档标题摘要和代码清理的单行注释之间自动插入新行。
例如我有以下代码:
/// <summary> The get data from source. </summary>
/// <returns> The source data. </returns>
// ReSharper disable once MethodTooLong
protected override IDictionary<string, Object> GetData()...
清理代码 (CTRL+E+F) 后,结果为:
/// <summary> The get data from source. </summary>
/// <returns> The source data. </returns>
// ReSharper disable once MethodTooLong
protected override IDictionary<string, Object> GetData()...
如何摆脱自动插入的空行?
解决方案
很晚了,但为了未来:
在 Resharper 2018.2.3
Resharper > 选项 > 代码编辑 > C# > 格式化样式 > 空行:声明中的空行:在文件头注释 = 0 之后
由于您也有评论,请确保您有 Resharper > Options > Code Editing > C# > Formatting Style > Blank Lines : General : Before single-line comment = 0
推荐阅读
- animation - JavaFX图表:启用动画时动态数据会导致视轴故障
- javascript - 如何链接和使用外部 JS 文件并在 ejs 文件中使用它?
- reactive-programming - RxPy:使用可变计数进行缓冲
- r - 如何从值大于 4 的现有变量创建新变量
- wordpress - 如何使用带有 SwiftUI 的 Rest API 获取 Wordpress 帖子的帖子 ID
- xml - How to remove empty when grouping?
- c++ - 在 unique_ptr 中包装没有移动构造函数的 C++ 对象?
- azure-data-explorer - Kusto Query 将结果转换到另一个表中
- abap - 如何使用 CRM_ORDER_MAINTAIN 创建服务票证?
- java - 命令失败,错误 13(未授权):'未授权