MkTree is a productivity extension for VS Code and Cursor that instantly transforms text-based tree diagrams (like those in READMEs or documentation) into real files and folders.
- Smart Way: Open any file (like README.md) containing a tree structure. Click the "🌳 Create this structure" link that appears above the diagram.
- Manual Way: Select the tree text, Right-click, and choose "MkTree: Create structure from selection".
- Jeito Inteligente: Abra um arquivo (ex: README.md) com uma estrutura de árvore. Clique no link "🌳 Criar esta estrutura" que aparecerá acima do texto.
- Jeito Manual: Selecione o texto da árvore, Clique com o botão direito e escolha "MkTree: Criar estrutura da seleção".
- Smart Detection: Automatically skips Markdown titles, fences, and irrelevant text.
- Pre-flight Validation: Checks for OS-invalid characters and duplicate paths before touching your disk.
- Known Files Support: Correcty identifies Dockerfile, package.json, .env, LICENSE, and more as files, even without extensions.
- Recursive Creation: Automatically generates all necessary parent directories.
- Multi-language: Supports English and Portuguese.
The extension recognizes standard tree outputs like this:
my-project/
├── src/
│ ├── index.ts
│ └── components/
│ └── Button.tsx
├── .env
└── DockerfileMkTree includes a "Dry Run" logic. If your structure has errors, it will block the creation process.
Install from Open VSX
- Open VS Code.
- Go to Extensions (Ctrl+Shift+X).
- Click the "..." (top right) > Install from VSIX....
- Select your mktree-x.x.x.vsix file.
Developed by [kayooliveira](https://github.com/kayooliveira)