c# – 如何添加鼠标悬停摘要
发布时间:2020-12-15 17:15:13 所属栏目:百科 来源:网络整理
导读:我几乎可以肯定这将是一个非常简单的答案,但我似乎无法在任何地方找到它.我们都知道当你将鼠标悬停在某些东西(如字符串)上时会弹出一个小摘要(如果已启用).对于一个字符串,它说: class System.String Represents text as a series of Unicode characters.
我几乎可以肯定这将是一个非常简单的答案,但我似乎无法在任何地方找到它.我们都知道当你将鼠标悬停在某些东西(如字符串)上时会弹出一个小摘要(如果已启用).对于一个字符串,它说:
当我将鼠标悬停在其中一个课程上时,它只是说:
我已经尝试了我发现的两个明显的例子: /// <summary> /// This summary does not work,I know it's for html documenting tools but thought it was worth a shot. /// </summary> 和: // Summary: // This is what is in some of the base libraries,and does not work as well. 那么,如何在鼠标悬停弹出窗口中添加摘要? 解决方法
我不明白为什么你的第一次尝试不起作用.这是< summary>评论标签提供您正在谈论的’工具提示’…
/// <summary> /// This text should automatically show up as the summary when hovering over /// an instance of this class in VS /// </summary> public class MyClass { public MyClass() {} } public class MyClass2 { public MyClass() { //hovering over 'something' below in VS should provide the summary tooltip... MyClass something = new MyClass(); } } 如果您想要帮助自动化您的一些评论,请尝试免费的GhostDoc.到目前为止最好的免费VS插件之一.. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |