如何在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

最好的问候