如何在Visual Studio IDE中获取复制事件 [英] How to get copy event in the Visual Studio IDE

查看:75
本文介绍了如何在Visual Studio IDE中获取复制事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想获取副本事件"(我真的不知道如何调用它,如果我使用Qt,我想调用它

信号") -实际上是在activeDocument中,如果事件发生,我

"Signal")in the Visual Studio IDE—actually in an activeDocument, if the event happened, I

想要 添加一些e xtra代码到

want to add some extra code to record the content which has been copied,  but now,I cannot

get the copy "event" at all!

它的确使我发疯, 您能帮我一下吗? 谢谢!

it really drives me crazy,could you lend me a hand? thank you!

推荐答案

我想您想在编辑器中获取事件.

I guess that you want get the event in the editor.

您可以尝试使用加载项获取 SelectionEvents TextEditorEvents .

You can try use add-in to get the SelectionEvents or TextEditorEvents.

您还可以创建一个VS包以使用 ITextBuffer ITextView 界面.

You also can create a VS Package to use ITextBuffer or ITextView interface.

您可以参考更多信息:

http://msdn.microsoft.com/en-us/library/dd885240.aspx

最好的问候


这篇关于如何在Visual Studio IDE中获取复制事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆