-
Copy Folder Structure to clipboard:
- Supports two output formats:
- JSON Format (default)
- Plain Text Format (tree-like structure with
|--
for hierarchy)
- Right-click context menu in Explorer for quick access
- Automatically ignores files and folders specified in
.gitignore
(e.g.,node_modules
)
- Supports two output formats:
-
Create Folder Structure:
- Create a folder structure from user-provided input in two formats:
- JSON Format: Parses JSON input and generates directories/files.
- Plain Text Format: Parses a tree-like structure to create folders and files.
- Includes input validation to ensure proper formatting.
- Create a folder structure from user-provided input in two formats:
-
Copy File Name:
- Right-click a file in Explorer to copy its name to the clipboard.
- Works only for local files and provides feedback when successful or in case of error.
- Open VS Code.
- Go to the Extensions tab.
- Search for Folder Structure Pro and click Install.
- Right-click a folder in Explorer and select Copy Folder Structure.
- Alternatively, open the Command Palette (
Ctrl+Shift+P
) and search for Copy Folder Structure.
- Right-click a folder in Explorer and select Create Project Using Folder Structure.
- Alternatively, open the Command Palette (
Ctrl+Shift+P
) and search for Create Project Using Folder Structure.
- Alternatively, open the Command Palette (
- Enter the target directory path where the structure should be created.
- Choose the input format (
JSON
orPlain Text
). - Provide the folder structure input (e.g., from Copy Folder Structure) in the UI editor and click Submit.
- Right-click a file in Explorer and select Copy File Name.
- Alternatively, open the Command Palette (
Ctrl+Shift+P
) and search for Copy File Name.
- outputFormat: Choose between:
JSON Format
Plain Text Format
- Modify this setting in Settings (
Ctrl+,
) underfolderStructure
.
- JSON Format:
{ "app": { "index.js": null, "hello.js": null }, "test": { "test.ts": null } }
- Plain Text Format:
app |-- index.js |-- hello.js test |-- test.ts
- Scans the folder structure, respecting
.gitignore
files. - Excludes files like
node_modules
and hidden files by default. - Copies the structure to the clipboard in the selected format.
- Reads user input from the provided webview.
- Validates and parses the input (
JSON
orPlain Text
). - Generates folders and files in the specified target directory.
- Right-click a file in the Explorer.
- Copies the file name to the clipboard.
- Supports only local files and provides feedback on success or error (e.g., file inaccessible, permission denied).
- No Option in Context Menu: Reload VS Code (
Ctrl+Shift+P
→Reload Window
). - Clipboard Not Working: Check system permissions.
- Input Error (Create): Ensure the input follows the required JSON or Plain Text format.
- Copy File Name Not Working: Ensure a valid, accessible file is selected.
This project is licensed under the MIT License - see the LICENSE file for details.
For questions or feedback, open an issue on the GitHub repository.