Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Dynamic TemplaterNew to Visual Studio Code? Get it now.
Dynamic Templater

Dynamic Templater

Naceja

|
147 installs
| (0) | Free
Dinamic Templates Creator
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Dynamic Templater

ENG - Content in english

POR - Conteúdo em português


Description

The Dynamic Templater extension for Visual Studio Code provides a simple and effective way to create and utilize dynamic templates to streamline the process of creating pre-made files. With Dynamic Templater, you can create and use custom templates to quickly generate new files with dynamic content.

Key features

  • Template Creation: Easily create template files for various file types such as JavaScript, TypeScript, HTML, CSS, and many others.

    New Template Command

  • File Generation: Create new files based on your custom templates, preenchendo automaticamente o conteúdo dinâmico com base em um objeto de opções fornecido.

    New File Based on Template in Context Menu Explorer

  • Dynamic Content: Templates can be configured to receive an options object, allowing the inclusion of dynamic content in the template during file generation.

How To

  • Creating a template based on file (New File Based on Template):

    New File Based on Default Template

  • Creating a new template (New Template):

    New Template

  • Modifying a template:

    Modifying Template

  • Creating a File Based on the Modified Template:

    Using Modified Template

Available Settings

  • dynamicTemplater.author.name: Define the author's name, this value will be available in the 'options.author.name' parameter of the Template's render function.
  • dynamicTemplater.author.email: Set the author's email, this value will be available in the 'options.author.email' parameter of the Template's render function.
  • dynamicTemplater.customOptions: Defines an object of additional custom options that will be sent to the template render and will be accessible in options.customOptions.
  • dynamicTemplater.templatesDir: Allows you to define a custom directory for managing the templates (Default: C:\Users\your_user.vscode\extensions\naceja.dynamictemplater-x.x.x\out\templates).

Available Commands

  • Dynamic Templater:newFile: Create a new file based on template (Available only on EXPLORER Context Menu).
  • Dynamic Templater:newTemplate: Create a new Template File.
  • Dynamic Templater:openTemplatesDirectory: Open a current templates directory on file explorer.

Template File

The template file (Template Render) allows you to use javascript syntax to manipulate the information, which allows you to render the content in the way you see fit and without complications.

Contribute

You can contribute to the development of Dynamic Templater by reporting issues, suggesting new features, or submitting pull requests to the official repository: Dynamic Templater on GitHub

License

This extension is distributed under the MIT License. Feel free to use and modify it according to your needs.


Descrição

A extensão Dynamic Templater para o Visual Studio Code oferece uma maneira simples e eficaz de criar e utilizar templates dinâmicos para agilizar o processo de criação de arquivos pré-fabricados. Com Dynamic Templater, você pode criar e usar modelos personalizados para gerar rapidamente novos arquivos com conteúdo dinâmico.

Recursos Principais

  • Criação de Templates: Crie facilmente arquivos de template para diversos tipos de arquivos, como JavaScript, TypeScript, HTML, CSS e muitos outros.

    New Template Command

  • Geração de Arquivos: Crie novos arquivos com base nos seus templates personalizados, preenchendo automaticamente o conteúdo dinâmico com base em um objeto de opções fornecido.

    New File Based on Template in Context Menu Explorer

  • Conteúdo Dinâmico: Os templates podem ser configurados para receber um objeto de opções, permitindo a inclusão de conteúdo dinâmico no template durante a geração do arquivo.

Como Usar

  • Criando um arquivo baseado em template (New File Based on Template):

    New File Based on Default Template

  • Criando um novo template (New Template):

    New Template

  • Modificando um template:

    Modifying Template

  • Criando um arquivo com base no template modificado:

    Using Modified Template

Configurações disponíveis

  • dynamicTemplater.author.name: Define o nome do autor, este valor estará disponível em options.author.name parâmetro da função render do Template.
  • dynamicTemplater.author.email: Define o email do autor, este valor estará disponível em options.author.email parâmetro da função render do Template.
  • dynamicTemplater.customOptions: Define um objeto de opções adicionais customizadas que serão enviadas ao render do template e estarão acessíveis em options.customOptions.
  • dynamicTemplater.templatesDir: Permite definir um diretório customizado para o gerenciamento dos templates (Padrão: C:\Users\your_user.vscode\extensions\naceja.dynamictemplater-x.x.x\out\templates).

Comandos disponíveis

  • Dynamic Templater:newFile: Cria um novo arquivo baseado em template (Disponível apenas no menu de contexto do EXPLORER).
  • Dynamic Templater:newTemplate: Cria um novo arquivo de template.
  • Dynamic Templater:openTemplatesDirectory: Abre a atual pasta de templates no explorador de arquivos.

Arquivo de Template

O arquivo de template (Template Render) permite usar sintaxe javascript para manipular as informações o que lhe permite renderizar o conteúdo da forma que achar melhor e sem complicações.

Contribua

Você pode contribuir para o desenvolvimento do Dynamic Templater reportando problemas, sugerindo novos recursos ou enviando pull requests no repositório oficial: Dynamic Templater no GitHub

Licença

Esta extensão é distribuída sob a Licença MIT. Sinta-se à vontade para usá-la e modificá-la de acordo com suas necessidades.

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