Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Automagic CodeNew to Visual Studio Code? Get it now.
Automagic Code

Automagic Code

Jair Zeferino Júnior

|
2,779 installs
| (2) | Free
Make your life easier to use Automagic Code with Mustache Logic-less
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Automagic code for Visual Studio Code

Current Version Install Count

Automagic Code is a plugin for Visual Studio Code to make life easier to use Mustache Logic-less Templates.

Create your template and generate class for the program language and design pattern that best meets your needs.

generate

Generate Code

  • Create file config.json with code
{    
    "metadataJsonFile": ["json-metadata-file"],
    "templates":
    [
        {
            "name" : ["template-name"],
            "mustacheFile": ["template-mustache-file"],
            "outDir": ["output-derectory"]
        }
    ]    
}
  • json-metadata-file: File path contain a JSON metadata

  • template-name: Name of template

  • template-mustache-file: File with a template Mustache

    • To generate a file separated using ---<EOF: {"nameFile": "{{file_name}}"}>--- in your template, where file_name should is present in json-metadata-file
  • output-derectory: Output directory for generated file

Press F1 in VSCode and look for Automagic Code: Generate.

License

MIT © Jair Zeferino Júnior

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