gpt4 book ai didi

c# - 注释斜杠//缩进太左(Rider)

转载 作者:太空宇宙 更新时间:2023-11-03 18:21:02 26 4
gpt4 key购买 nike

我正在使用 Rider,当我使用键盘映射“使用行注释注释/取消注释”注释掉一行时,斜杠//缩进得太靠左,而不是实际单词出现的位置。也许一张图片可以更好地说明它。 enter image description here

我希望斜杠位于该行最初开始的位置,就像您使用 vscode 或 sublimetext 时一样:

enter image description here

很抱歉这个奇怪的话题,但它已经困扰了我很长一段时间,并且在打字时无法停止思考它 (:D)。我找不到可以更改此设置的设置。

最佳答案

在此处查看如何更改它。
https://www.jetbrains.com/help/rider/Coding_Assistance__Comment_Uncomment_Code.html#commenting-and-uncommenting-with-line-comments

According to the Don't indent comments started at first column option, the comment will be added with or without the indent. You can configure this option for different languages separately, for example, for C# it is on the Editor | Code Style | C# | Tabs, Indents, Alignment page of JetBrains Rider settings Ctrl+Alt+S.

关于c# - 注释斜杠//缩进太左(Rider),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54127860/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com