Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>DirFromTemplateNew to Visual Studio Code? Get it now.
DirFromTemplate

DirFromTemplate

Silvio Lindstedt

|
1 install
| (0) | Free
Erstellt Verzeichnisstrukturen aus benannten Templates
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

  1. 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"
  }
}
  1. Right-click on any folder in Explorer
  2. Select "Create Directory Structure from Template"
  3. 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
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft