更新时间:2023-12-06 14:30:47
我想您想在编辑器中获取事件.
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
***的问候