I am building a custom macro to be used with a specific live template (reason: increase productivity in a specific project).
What I want the macro to do is: after it has finished (so on the Finish event of the
SnippetIn the handler for the FinisghedHotspotSession) write some code in the constructor and include a namespace if it is missing.
In the handler for the Finish event I get a reference to the HotSpotSession.
I do not understand how am I suppose to generate the code. I suppose I need somehow to get a reference to the Class I added the tempalte in and start from there.
My question are:
1. Is my approach corect ? Can I really use macros for my situation ?
2. How do I generate code starting from a HotSpotSession ?