I am implementing Visual Studio Add-in and I want my service to be notified when class or method is removed in C# editor. Is there any samples showing how to do that ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’re probably looking for code model events exposed via the DTE2 object. For fully featured synchronization you’ll need to handle ElementChanged and ElementAdded events as well:
Don’t forget to remove the handlers after you finish: