CodeRush 中操作提示 ActionHint 的使用
我想将操作提示箭头指向当前类中名为 MyMethod 的方法调用。因此,如果有任何名为 MyMethod 的方法调用,当我单击某些按键组合时,箭头应该指向它们。
我尝试使用此处给出的 ActionHint 步骤来执行此操作。但我不知道该使用哪个事件。
然后我尝试通过 CodeProvider 调用 CodeRush.ActionHint.PointTo() 但没有成功。
可以写这样的插件吗?如果是,我应该使用哪个版本的 PointTo() 方法。
如果可能的话,示例代码会有所帮助。
提前致谢。
I wanted to point the action hint arrow to the methodcall named MyMethod in the current class. So if there are any methodcall with name MyMethod the arrows should be pointing them when I click some combination of keys.
I tried to do this with ActionHint steps given here. But I have no idea which event to use.
Then I tried to call CodeRush.ActionHint.PointTo() through CodeProvider but did not work.
Is it possible to write such plugin? If yes which version of PointTo() method should I use.
A sample code if possible would be helpful.
Thanks in Advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不出现操作提示的唯一原因是您的源代码点可能超出了可见的屏幕范围。在调用 PointTo() 之前,请确保目标点可见。您可以使用以下 PointTo 重载:
The only reason for which the action hint doesn't appear is that your source code point might be outside of the visible screen bounds. Before calling PointTo(), make sure that the target point is visible. You can use the following PointTo overload: