Visual Studio SDK - Handling File Add, Remove, and Rename Events
问题 I'm working on a Visual Studio extension that should listen for events when the user adds, removes, or renames files in the current solution. The answer to this question notes that VS provides infrastructure for listening to document events like saving, opening and closing through the DocumentEvents interface. For example: Dte.Events.DocumentEvents.DocumentSaved Are there similar events that would allow me to listen to the user adding/removing/renaming documents? 回答1: First, don't use DTE if