问题描述
嗨
我想获取副本事件"(我真的不知道如何调用它,如果我使用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中获取复制事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!