Macros were really useful weren't they? Sadly they are no more. Want to put regions round all your methods at the press of a button? Easy. The simple Transformer interface passes you a string of the active code file (or selection if present) and you can do whatever you like with it and pass it back. Simple! There's also a neat CsDocument parser that will do very basic document parsing to aid you with modifying the document to your needs. (See sample macros for usage) Just some of the things you can do easily with VSCodeTransformer: Instructions:
Other notes: See the home page for more information: http://www.nullcity.com/Posts/Show/VSCodeTransformer It's a little experimental and I've thrown it together quickly for release to see if it's useful to anyone. If so I might put more effort into it in future. So if you enjoy it, let me know. |