使用编辑器配置在不同行中格式化参数

huangapple go评论99阅读模式
英文:

Formatting parameters in different lines using editor config

问题

"Is there any way to use editor config to format parameters in different lines.

  • Example 1 violates the guideline.
  • Example 2 has more than 3 parameters.

使用编辑器配置在不同行中格式化参数"

英文:

Is there any way to use editor config to format parameters in different lines.

  • Example 1 violates the guideline.
  • Example 2 has more than 3 parameters.

使用编辑器配置在不同行中格式化参数

答案1

得分: 0

最大行长度=120

csharp在声明后换行=true
csharp参数换行样式=如果很长则截断
csharp一行上的最大形式参数=3

csharp在调用后换行=true
csharp参数换行样式=如果很长则截断
csharp一行上的最大调用参数=3

英文:

That's it.

max_line_length=120

csharp_wrap_after_declaration_lpar=true
csharp_wrap_parameters_style=chop_if_long
csharp_max_formal_parameters_on_line=3

csharp_wrap_after_invocation_lpar=true
csharp_wrap_arguments_style=chop_if_long
csharp_max_invocation_arguments_on_line=3

huangapple
  • 本文由 发表于 2023年6月30日 02:12:33
  • 转载请务必保留本文链接:https://go.coder-hub.com/76583642.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定