折叠注释设置:如何使折叠注释位于方法的左侧和同一行

编程入门 行业动态 更新时间:2024-10-08 12:37:01
本文介绍了折叠注释设置:如何使折叠注释位于方法的左侧和同一行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

Hello Everyone,

我正在尝试在visual studio中找到执行以下操作的设置:

在折叠属性,评论等之前:

[ - ] / * comments

blah blah blah

** /

public void method()

折叠属性,评论等后:

[+] [...]公共无效方法

最后,我试图发布图片,但我一直得到"BODY TEXT不能包含图像,直到我们可以验证你的帐户"。 (我甚至没有收到帐户验证电子邮件 - 检查过垃圾邮件)

提前致谢,

解决方案

ManaAura,

欢迎来到MSDN论坛。

您是否要在代码左侧和同一行创建注释部分?就像下面的截图一样,让评论向下移动一行,对吗?

我检查了工具 - 选项..-文本编辑器,没有这样的选项来实现这个要求。对于我个人的想法,最好将它们设置为不同的线路,并且更清楚地以来检查。在同一行,如果注释很长,我们需要手动移动垂直条来检查代码部分,这不是很方便。

如果您仍想要设置达到您的要求,请随时让我知道,我会帮助您向VS产品团队报告此用户的声音,感谢您的合作。

>>最后,我试图发布图像,但我一直得到"身体文字不能包含图像,直到我们可以验证你的帐户"。 (我甚至没有收到帐户验证电子邮件 - 也检查过垃圾邮件)

很抱歉给您带来不便,您需要在此主题上要求: 验证您的帐户以激活您的帐户。同时,您还可以尝试将屏幕截图上传到 onedrive 并在此处分享链接。

祝你好运,

Sara

Hello Everyone,

I'm trying to find the setting in visual studio that does the following:

Before Collapsing Attributes, Comments, etc:

[-] /*comments

blah blah blah

**/

public void method()

After Collapsing Attributes, Comments, etc:

[+] [...] public void method

At last, I tried to post images, but I kept getting "BODY TEXT CANNOT CONTAIN IMAGES UNTIL WE ARE ABLE TO VERIFY YOU ACCOUNT". ( I didn't even receive an account verification email - checked junk mail too)

Thanks in advance,

解决方案

Hi ManaAura,

Welcome to the MSDN forum.

Do you want to make the comment part at the left side of the code and at the same line? Like the following screenshot, and make the comment move down a line, right?

I have checked the Tools-Options..-Text Editor and there is no such option to achieve this requirement. For my personal idea, it is better to make them to different lines and more clearly for us to check. At the same line, if the comment is long and we need to manually move the vertical bar to check the code part, which is not very convenience.

If you still want a setting to reach your requirement, please feel free to let me know and I will help you report this user voice to the VS Product Team, thank you for your cooperation.

>> At last, I tried to post images, but I kept getting "BODY TEXT CANNOT CONTAIN IMAGES UNTIL WE ARE ABLE TO VERIFY YOU ACCOUNT". ( I didn't even receive an account verification email - checked junk mail too)

Sorry for this inconvenience and you need to ask for a requirement on this thread: Verify Your Account to active your account. Meanwhile, you can also try to upload your screenshot to onedrive and share the link in here.

Best regards,

Sara

更多推荐

折叠注释设置:如何使折叠注释位于方法的左侧和同一行

本文发布于:2023-10-31 10:20:25,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1545794.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:注释   方法

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!