• Stars
    star
    190
  • Rank 203,739 (Top 5 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 8 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Visual Studio Code Extension

icon

File Utils - Visual Studio Code Extension

Known Vulnerabilities Renovate semantic-release


A convenient way of creating, duplicating, moving, renaming, deleting files and directories.

Inspired by Sidebar Enhancements for Sublime.

How to use

demo

Using the context menu:

  • Right click on a file or folder in the Explorer pane or in a file tab.
  • Select one of those command: Copy Name, Duplicate..., Move..., Rename..., Delete....
  • For comand Copy name, the file name is copied to the clipboard.
  • For other command, answer the additional info requested:
    • Duplicate: update path to duplicate near where the command palette is displayed.
    • Move: update path to move to near where the command palette is displayed.
    • Rename: update name in Explorer pane or near where the command palette is displayed
    • Delete: answer Visual Studio Code delete dialog.

Using the command palette:

  • Bring up the command palette, and select "File Utils: ".
  • Select one of the commands mentioned below.
  • Press [Enter] to confirm, or [Escape] to cancel.

howto

Brace Expansion

Brace expansion is a mechanism by which arbitrary strings may be generated.

Example file name input

/tmp/{a,b,c}/index.{cpp,ts,scss}

will generate the following files

➜  tree /tmp
/tmp
β”œβ”€β”€ a
β”‚   β”œβ”€β”€ index.cpp
β”‚   β”œβ”€β”€ index.scss
β”‚   └── index.ts
β”œβ”€β”€ b
β”‚   β”œβ”€β”€ index.cpp
β”‚   β”œβ”€β”€ index.scss
β”‚   └── index.ts
└── c
    β”œβ”€β”€ index.cpp
    β”œβ”€β”€ index.scss
    └── index.ts

Note

Non-existent folders are created automatically.

Changelog

How to contribute

Disclaimer

Important: This extension due to the nature of it's purpose will create files on your hard drive and if necessary create the respective folder structure. While it should not override any files during this process, I'm not giving any guarantees or take any responsibility in case of lost data.

Contributors

License

MIT

Credits

Icon