A convenient way of creating, duplicating, moving, renaming, deleting files and directories.
Inspired by Sidebar Enhancements for Sublime.
- Bring up the command palette, and select "File: ".
- Select one of the commands mentioned below.
- Press [Enter] to confirm, or [Escape] to cancel.
Nonexistent folders are created automatically.
[
{
"command": "fileutils.renameFile",
"category": "File",
"title": "Rename"
},
{
"command": "fileutils.moveFile",
"category": "File",
"title": "Move"
},
{
"command": "fileutils.duplicateFile",
"category": "File",
"title": "Duplicate"
},
{
"command": "fileutils.removeFile",
"category": "File",
"title": "Delete"
},
{
"command": "fileutils.newFile",
"category": "File",
"title": "New File Relative to Current View"
},
{
"command": "fileutils.newFileAtRoot",
"category": "File",
"title": "New File Relative to Project Root"
},
{
"command": "fileutils.newFolder",
"category": "File",
"title": "New Folder Relative to Current View"
},
{
"command": "fileutils.newFolderAtRoot",
"category": "File",
"title": "New Folder Relative to Project Root"
}
]
{
"explorer/context": [
{
"command": "fileutils.moveFile",
"group": "edit"
},
{
"command": "fileutils.duplicateFile",
"group": "edit"
}
],
"editor/context": [
{
"command": "fileutils.moveFile",
"group": "edit"
},
{
"command": "fileutils.duplicateFile",
"group": "edit"
}
]
}
{
"fileutils.delete.useTrash": {
"type": "boolean",
"default": false,
"description": "Move file to the recycle bin instead of deleting it permanently."
},
"fileutils.delete.confirm": {
"type": "boolean",
"default": true,
"description": "Controls if it should ask for confirmation when deleting a file."
},
"fileutils.typeahead.enabled": {
"type": "boolean",
"default": true,
"description": "Controls if directory selector should be shown."
},
"fileutils.typeahead.exclude": {
"type": "object",
"default": {},
"description": "Configure glob patterns for excluding files and folders."
}
}
- Download source code and install dependencies
git clone [email protected]:sleistner/vscode-fileutils.git
cd vscode-fileutils
npm install
code .
- Make the respective code changes.
- Go to the debugger in VS Code, choose
Launch Extension
and click run. You can test your changes. - Choose
Launch Tests
to run the tests. - Submit a PR.
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.
MIT