This VS Code extension allows you to quickly and easily create directory structures from named JSON templates.
- 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)
- Create a
.vscode/dir-template.jsonfile 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
- Empty objects
{}in the JSON structure represent folders - The value
"FILE"marks an empty file - Existing files and folders are skipped
If you like this extension, please leave a rating in the marketplace. For bug reports or feature requests, visit the GitHub repository.
Or search for "DirFromTemplate" in the VS Code Extensions view (Ctrl+Shift+X).