Update package version to 0.0.8, add new configuration options for templates path, file overwrite behavior, input mode, and language selection. Remove old .vsix files and update README for improved usage instructions.
This commit is contained in:
16
README.md
16
README.md
@@ -13,14 +13,14 @@
|
||||

|
||||
|
||||
**How to use:**
|
||||
1. Create a folder with templates (default: `templates`).
|
||||
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.
|
||||
|
||||
**Example template:**
|
||||
```
|
||||
templates/
|
||||
.templates/
|
||||
component/
|
||||
{{name}}/
|
||||
index.tsx
|
||||
@@ -62,10 +62,12 @@ This extension works with **any framework** — you define your own templates fo
|
||||
Just create a template for your favorite stack — and generate any structure you want! 🎉
|
||||
|
||||
**Configuration:**
|
||||
All settings via `mycodegenerate.json` in the project root or the visual configurator.
|
||||
All settings are managed via the standard VSCode user settings (or the visual configurator).
|
||||
|
||||
To open the settings menu, press <kbd>Ctrl</kbd>+<kbd>P</kbd>, type `Configure myTemplateGenerator...` and select the menu item.
|
||||
|
||||
You can also find all options in VSCode settings under `myTemplateGenerator`.
|
||||
|
||||
|
||||
# MyTemplateGenerator (русский)
|
||||
|
||||
@@ -80,14 +82,14 @@ To open the settings menu, press <kbd>Ctrl</kbd>+<kbd>P</kbd>, type `Configure m
|
||||

|
||||
|
||||
**Как использовать:**
|
||||
1. Создайте папку с шаблонами (по умолчанию `templates`).
|
||||
1. Создайте папку с шаблонами (по умолчанию `.templates`).
|
||||
2. Используйте переменные в шаблонах: `{{name}}`, `{{name.pascalCase}}` и т.д.
|
||||
3. Кликните правой кнопкой по папке в проекте → **Создать из шаблона...**
|
||||
4. Выберите шаблон, заполните переменные — структура будет создана автоматически.
|
||||
|
||||
**Пример шаблона:**
|
||||
```
|
||||
templates/
|
||||
.templates/
|
||||
component/
|
||||
{{name}}/
|
||||
index.tsx
|
||||
@@ -129,6 +131,8 @@ templates/
|
||||
Создайте шаблон под свой стек — и генерируйте любые структуры! 🎉
|
||||
|
||||
**Настройка:**
|
||||
Всё настраивается через файл `mycodegenerate.json` в корне проекта или визуальный конфигуратор.
|
||||
Все параметры задаются через стандартные пользовательские настройки VSCode (или визуальный конфигуратор).
|
||||
|
||||
Чтобы открыть меню настроек, нажмите <kbd>Ctrl</kbd>+<kbd>P</kbd>, введите `Настроить myTemplateGenerator...` (или `Configure myTemplateGenerator...` для английского интерфейса) и выберите соответствующий пункт.
|
||||
|
||||
Также вы можете найти все параметры в настройках VSCode по ключу `myTemplateGenerator`.
|
||||
|
||||
Reference in New Issue
Block a user