2025-07-14 23:37:01 +03:00
[🇬🇧 English ](#mytemplategenerator ) | [🇷🇺 Русский ](#mytemplategenerator-русский )
2025-07-13 18:33:25 +03:00
2025-07-14 23:37:01 +03:00
# MyTemplateGenerator
2025-07-13 18:33:25 +03:00
2025-07-14 23:37:01 +03:00
**Generate files and folders from templates with variable substitution right from the VS Code context menu.**
2025-07-13 18:33:25 +03:00
2025-07-14 23:37:01 +03:00
- Syntax highlighting and autocomplete for template variables in template files (`{{name}}` , `{{name.camelCase}}` , etc.)
- Instantly create project structure from templates with variables in file/folder names and content
- Visual configurator and full localization (English/Russian)
- Flexible settings: templates folder path, variable input mode, overwrite protection
2025-07-13 18:33:25 +03:00
2025-07-13 20:40:45 +03:00


2025-07-14 23:37:01 +03:00
**How to use:**
1. Create a folder with templates (default: `templates` ).
2. Use variables in templates: `{{name}}` , `{{name.pascalCase}}` , etc.
3. Right-click any folder in your project → **Create from template...**
4. Select a template, fill in variables — the structure is generated automatically.
2025-07-13 18:33:25 +03:00
2025-07-14 23:37:01 +03:00
**Example template:**
2025-07-13 18:33:25 +03:00
```
templates/
2025-07-14 23:37:01 +03:00
component/
2025-07-13 18:33:25 +03:00
{{name}}/
2025-07-14 23:37:01 +03:00
index.tsx
{{name.camelCase}}.module.css
2025-07-13 18:33:25 +03:00
```
2025-07-14 23:37:01 +03:00
**Available modifiers:**
2025-07-13 18:33:25 +03:00
2025-07-14 23:37:01 +03:00
| Modifier | Example (`name = myComponent` ) |
|-----------------------|-------------------------------|
| `{{name}}` | myComponent |
| `{{name.pascalCase}}` | MyComponent |
| `{{name.camelCase}}` | myComponent |
| `{{name.snakeCase}}` | my_component |
| `{{name.kebabCase}}` | my-component |
| `{{name.screamingSnakeCase}}` | MY_COMPONENT |
| `{{name.upperCase}}` | Mycomponent |
| `{{name.lowerCase}}` | mycomponent |
| `{{name.upperCaseAll}}` | MYCOMPONENT |
| `{{name.lowerCaseAll}}` | mycomponent |
2025-07-13 18:33:25 +03:00
2025-07-14 23:37:01 +03:00
**Supported modifiers:** pascalCase, camelCase, snakeCase, kebabCase, upperCase, lowerCase, and more.
2025-07-13 18:33:25 +03:00
2025-07-14 23:37:01 +03:00
**Framework compatibility:**
2025-07-13 18:33:25 +03:00
2025-07-14 23:37:01 +03:00
This extension works with **any framework** — you define your own templates for any structure you need!
2025-07-13 18:33:25 +03:00
2025-07-14 23:37:01 +03:00
| Framework | Components | Store/State | Pages/Routes | Services | Utils |
|--------------|:----------:|:-----------:|:------------:|:--------:|:-----:|
| React | ✅ | ✅ | ✅ | ✅ | ✅ |
| Vue | ✅ | ✅ | ✅ | ✅ | ✅ |
| Angular | ✅ | ✅ | ✅ | ✅ | ✅ |
| Svelte | ✅ | ✅ | ✅ | ✅ | ✅ |
| Next.js | ✅ | ✅ | ✅ | ✅ | ✅ |
| Nuxt | ✅ | ✅ | ✅ | ✅ | ✅ |
| Solid | ✅ | ✅ | ✅ | ✅ | ✅ |
| Vanilla JS/TS| ✅ | ✅ | ✅ | ✅ | ✅ |
2025-07-13 18:33:25 +03:00
2025-07-14 23:37:01 +03:00
Just create a template for your favorite stack — and generate any structure you want! 🎉
2025-07-13 18:33:25 +03:00
2025-07-14 23:37:01 +03:00
**Configuration:**
All settings via `mycodegenerate.json` in the project root or the visual configurator.
2025-07-13 18:33:25 +03:00
2025-07-14 23:37:01 +03:00
To open the settings menu, press < kbd > Ctrl</ kbd > +< kbd > P</ kbd > , type `Configure myTemplateGenerator...` and select the menu item.
2025-07-13 18:33:25 +03:00
2025-07-13 20:40:45 +03:00
2025-07-14 23:37:01 +03:00
# MyTemplateGenerator (русский)
2025-07-13 20:40:45 +03:00
2025-07-14 23:37:01 +03:00
**Генерация файлов и папок по шаблонам с автозаменой переменных прямо из контекстного меню VS Code.**
2025-07-13 20:40:45 +03:00
2025-07-14 23:37:01 +03:00
- Подсветка и автокомплит переменных в шаблонных файлах (`{{name}}` , `{{name.camelCase}}` и др.)
- Быстрое создание структуры проекта по шаблонам с подстановкой переменных в имена файлов, папок и содержимое
- Визуальный конфигуратор и поддержка локализации (русский/английский)
- Гибкая настройка: путь к шаблонам, режим ввода переменных, запрет/разрешение перезаписи файлов
2025-07-13 20:40:45 +03:00
2025-07-14 23:37:01 +03:00


2025-07-13 18:33:25 +03:00
2025-07-14 23:37:01 +03:00
**Как использовать:**
1. Создайте папку с шаблонами (по умолчанию `templates` ).
2. Используйте переменные в шаблонах: `{{name}}` , `{{name.pascalCase}}` и т.д.
3. Кликните правой кнопкой по папке в проекте → **Создать из шаблона...**
4. Выберите шаблон, заполните переменные — структура будет создана автоматически.
2025-07-13 18:33:25 +03:00
2025-07-14 23:37:01 +03:00
**Пример шаблона:**
2025-07-13 18:33:25 +03:00
```
templates/
2025-07-14 23:37:01 +03:00
component/
2025-07-13 18:33:25 +03:00
{{name}}/
2025-07-14 23:37:01 +03:00
index.tsx
{{name.camelCase}}.module.css
2025-07-13 18:33:25 +03:00
```
2025-07-14 23:37:01 +03:00
**Доступные модификаторы:**
2025-07-13 18:33:25 +03:00
2025-07-14 23:37:01 +03:00
| Модификатор | Пример (`name = myComponent` ) |
|----------------------|-------------------------------|
| `{{name}}` | myComponent |
| `{{name.pascalCase}}` | MyComponent |
| `{{name.camelCase}}` | myComponent |
| `{{name.snakeCase}}` | my_component |
| `{{name.kebabCase}}` | my-component |
| `{{name.screamingSnakeCase}}` | MY_COMPONENT |
| `{{name.upperCase}}` | Mycomponent |
| `{{name.lowerCase}}` | mycomponent |
| `{{name.upperCaseAll}}` | MYCOMPONENT |
| `{{name.lowerCaseAll}}` | mycomponent |
2025-07-13 18:33:25 +03:00
2025-07-14 23:37:01 +03:00
**Поддерживаемые модификаторы:** pascalCase, camelCase, snakeCase, kebabCase, upperCase, lowerCase и др.
2025-07-13 18:33:25 +03:00
2025-07-14 23:37:01 +03:00
**Совместимость с фреймворками:**
2025-07-13 18:33:25 +03:00
2025-07-14 23:37:01 +03:00
Плагин подходит для **любых фреймворков** — вы сами задаёте шаблоны для любой структуры!
2025-07-13 18:33:25 +03:00
2025-07-14 23:37:01 +03:00
| Фреймворк | Компоненты | Store/State | Страницы/Роуты | Сервисы | Утилиты |
|--------------|:----------:|:-----------:|:--------------:|:-------:|:-------:|
| React | ✅ | ✅ | ✅ | ✅ | ✅ |
| Vue | ✅ | ✅ | ✅ | ✅ | ✅ |
| Angular | ✅ | ✅ | ✅ | ✅ | ✅ |
| Svelte | ✅ | ✅ | ✅ | ✅ | ✅ |
| Next.js | ✅ | ✅ | ✅ | ✅ | ✅ |
| Nuxt | ✅ | ✅ | ✅ | ✅ | ✅ |
| Solid | ✅ | ✅ | ✅ | ✅ | ✅ |
| Vanilla JS/TS| ✅ | ✅ | ✅ | ✅ | ✅ |
2025-07-13 18:33:25 +03:00
2025-07-14 23:37:01 +03:00
Создайте шаблон под свой стек — и генерируйте любые структуры! 🎉
2025-07-13 18:33:25 +03:00
2025-07-14 23:37:01 +03:00
**Настройка:**
Всё настраивается через файл `mycodegenerate.json` в корне проекта или визуальный конфигуратор.
2025-07-13 18:33:25 +03:00
2025-07-14 23:37:01 +03:00
Чтобы открыть меню настроек, нажмите < kbd > Ctrl</ kbd > +< kbd > P</ kbd > , введите `Настроить myTemplateGenerator...` (или `Configure myTemplateGenerator...` для английского интерфейса) и выберите соответствующий пункт.