基于先前自动对齐线的 R# 标识

发布于 2025-01-16 15:04:38 字数 887 浏览 4 评论 0原文

我第一次尝试使用 VS 2019 配置 R#,我想知道是否可以进行特定的缩进。

我目前拥有的:

indent I current have

我想移动第三行(如果可能的话,第四行的右括号)缩进到对齐的上一行的开头,例如这个:

在此处输入图像描述

这是我的括号选项(扩展/Resharper/选项/代码编辑/C#/格式样式/制表符、缩进、对齐)

在此处输入图像描述

这是我的对齐多行结构选项(扩展/Resharper/选项/代码编辑/C#/格式样式/ 制表符、缩进、对齐)

在此处输入图像描述

使用当前可用的缩进选项是否可以实现我想要做的事情?

I am trying to configure R# with VS 2019 for the first time and I'm wondering if a specific indentation is possible to do.

What I currently have :

indent I currently have

I would like to move the 3rd line (and if possible the closing parenthese at 4th line) to be indented to the beginning of the previous line which is aligned, like this :

enter image description here

Here are my Parenthesis options (Extension / Resharper / Options / Code Editing / C# / Formatting Style / Tabs, Indent, Alignment) :

enter image description here

And here are my Align multiline constructs options (Extension / Resharper / Options / Code Editing / C# / Formatting Style / Tabs, Indent, Alignment)

enter image description here

Is what I want to do even possible with the current indentation options available?

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

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

发布评论

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

评论(1

眼眸 2025-01-23 15:04:38

是和否

Yes and no ???? you can align arguments to the enclosing parenthesis, e. g.:

worksheet.Cells[positionExcelLine, 4]
         .Value = Convert.ToDecimal(
                                    total["MONTANT"].Replace(" ", "");

For this, go to ReSharper | Options | Code Editing | C# | Formatting Style | Tabs, Indents, Alignment and enable Call arguments by '('`:
enter image description here

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