DirFromTemplate
Deutsche Version
This VS Code extension allows you to quickly and easily create directory structures from named JSON templates.
Features
- Creates directory structures and empty files based on JSON templates
- Supports multiple named structures in one template file
- Easy access through the context menu for folders in Explorer
- Automatically skips existing files and directories
- Multilingual (English and German)
Usage
- Create a
.vscode/dir-template.json file in your workspace with the following structure:
{
"Example-Template-Name": {
"Example-Dir": {
"Example-Subdir": {},
"Example-Empty-File.txt": "FILE"
}
},
"webProject": {
"src": {
"js": {},
"css": {},
"assets": {
"images": {},
"fonts": {}
},
"index.html": "FILE"
},
"docs": {},
"README.md": "FILE"
},
"nodeBackend": {
"src": {
"controllers": {},
"models": {},
"routes": {},
"utils": {}
},
"tests": {},
"config": {},
"package.json": "FILE",
"README.md": "FILE"
}
}
- Right-click on any folder in Explorer
- Select "Create Directory Structure from Template"
- For multiple templates: Choose the desired structure
Notes
- Empty objects
{} in the JSON structure represent folders
- The value
"FILE" marks an empty file
- Existing files and folders are skipped
| |