Variables
interface Variable { key: string; prompt?: string;}| Field | Type | Default | Description |
|---|---|---|---|
key |
string |
required | Name used in placeholders. Letters, digits and underscores, not starting with a digit. Must be unique within the blueprint. |
prompt |
string |
Enter value for [key] |
Question shown in the input box. A blank prompt falls back to the default. |
Variables are asked in the order they are listed. The input box also shows the target folder.
Esccancels the whole run, nothing is created.- Without
variablesnothing is asked and the blueprint runs immediately. - The keys are checked before the first question, so a broken blueprint fails right away.
Value check
Section titled “Value check”The input box checks every value before accepting it:
- A value is required. An empty value, or one with only spaces, is rejected.
- Used with
pascal,camel,kebaborsnake: only Latin letters, digits, spaces,-and_are allowed, and there must be at least one letter or digit. These forms silently drop every other character, so23_-!@#$%^&?><*()would turn into23. Instead of creating wrong names, the input box asks you to type the value again. - Used only with
raw: any text is accepted.
The extension looks for the variable in file and folder names, in content and in the snippets that files use.
| Value | Used with | Result |
|---|---|---|
user profile |
.pascal |
accepted |
Fix: bug! |
.raw only |
accepted |
Fix: bug! |
.raw and .pascal |
rejected: : and ! would be dropped |
--- |
.kebab |
rejected: no letter or digit |
Привет |
.pascal |
rejected: Cyrillic would be dropped |