Skip to content
| Marketplace
Sign in
Visual Studio>Tools>VS Code Transformer
VS Code Transformer

VS Code Transformer

LokiSD

|
1,089 installs
| (0) | Free
VSCodeTransformer gives you code-based macros. Build C# code editing macros to run over any .NET code file inside VS.
Download

Macros were really useful weren't they? Sadly they are no more.
Here's a nice alternative for code-based macroing.

Want to put regions round all your methods at the press of a button? Easy.
Want to re-order all your code elements, simple!
Want to ensure all your summaries have caps? No problem.

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:

  1. Install the VSIX.
  2. Download the sample macros project: http://www.nullcity.com/Posts/Show/VSCodeTransformer
  3. Open VS and build the macros project.
  4. On the Tools menu in VS, select "VS Code Transformer" > "Show All Transforms"
  5. Pick the DLL you built as your macros assembly.
  6. Ok the dialog.

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.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft