Back to Marketplace
File Tools

File Tools

v1.0.1

by Extensions Maker

The file actions the editor is missing — copy a file to another folder, and read real statistics about any file or folder

ToolsUtilities

File Tools

Two things the editor cannot already do, and nothing it can.

The file tree already ships Rename, Delete, Move, Share, Open externally and Compare with for files, and New file, New folder, Rename, Delete, Import, Move and Create ZIP for folders. This extension does not repeat any of them.

What it adds

| Action | Where | What it does |

|---|---|---|

| Copy To… | File menu | Pick a destination folder and copy the file there. The built-in menu can only *move* a file. |

| File Info | File menu | Size, total and non-empty line counts, words, characters and the longest line. |

| Folder Info | Folder menu | File and folder counts, total size, a breakdown by file type, and the five largest files. |

All three are in the command palette too, where they act on the active file or the project root.

Settings

| Setting | Default | Description |

|---|---|---|

| Excluded Folders | node_modules,.git,build,dist,… | Left out of folder measurements |

Permissions

fileSystem — needed because Copy To… can target a folder outside the current project. You are prompted the first time, and can grant it once, for the session, or permanently.

Notes

File Info reads the whole file to count lines and words, so it is meant for source files. Binary files report size only, computed from the base64 length rather than by decoding the file.

Some SAF storage providers report a size of 0 for their entries; folder totals under-count when that happens.