Resharper代码清理和Azure功能方法签名

时间:2018-03-19 02:36:27

标签: c# resharper

我喜欢R#2017.3.3在运行代码清理时不要为我的Azure函数方法签名引入换行符。预期:

public static async Task<HttpResponseMessage> Run([HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = null)] HttpRequestMessage req, TraceWriter log)

如何在内置完全清理上格式化

public static async Task<HttpResponseMessage> Run([HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = null)]
                                              HttpRequestMessage req, TraceWriter log)

我尝试过各种线条长度,属性包装和一般C#换行符的组合,但似乎无法找到解决方案。

1 个答案:

答案 0 :(得分:1)

尝试在Place attribute section list on separate line if it is longer than

增加ReSharper | Options | Code Editing | C# | Formatting Style | Line Breaks and Wrapping | Arrangement of Attributes属性的值