Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrmlnc/vscode-duplicate
:electric_plug: Ability to duplicate files in VS Code.
https://github.com/mrmlnc/vscode-duplicate
duplication visual-studio-code vscode vscode-extension
Last synced: about 2 months ago
JSON representation
:electric_plug: Ability to duplicate files in VS Code.
- Host: GitHub
- URL: https://github.com/mrmlnc/vscode-duplicate
- Owner: mrmlnc
- License: mit
- Created: 2016-07-21T20:02:13.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-10-22T03:27:19.000Z (about 1 year ago)
- Last Synced: 2024-10-10T23:10:50.252Z (2 months ago)
- Topics: duplication, visual-studio-code, vscode, vscode-extension
- Language: TypeScript
- Homepage: https://goo.gl/LSnrBW
- Size: 32.2 KB
- Stars: 53
- Watchers: 3
- Forks: 16
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE-OF-CONDUCT.md
Awesome Lists containing this project
README
# vscode-duplicate
> Ability to duplicate files and directories in VS Code.
## Donate
If you want to thank me, or promote your Issue.
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://paypal.me/mrmlnc)
> Sorry, but I have work and support for plugins and modules requires some time after work. I will be glad of your support or PR's.
## Install
* Press F1 and `select Extensions: Install Extensions`.
* Search for and select `duplicate`.See the [extension installation guide](https://code.visualstudio.com/docs/editor/extension-gallery) for details.
## Usage
The first option:
1. Hover on a file or directory name in explorer.
2. Right-click and select `Duplicate file`.
3. Enter the new path for the duplicate.The second option:
1. Open the file.
2. Press `F1` and select `Duplicate file`.
3. Enter the new path for the duplicate.## About file extension
> :warning: If you do not specify a new extension, the previous **will be saved**.
But you can use two special characters:
* `!!ext` – don't preserve original extension.
* `&&ext` – preserve original extension (available with `duplicate.keepOriginalExtension` option).For example:
* `nameOfFile!!ext` – create filepath without original extension
* `nameOfFile&&ext` – create filepath with original extension## Supported settings
#### duplicate.openFileAfterCopy
* Type: `Boolean`
* Default: `true`Automatically open newly copied files.
#### duplicate.keepOriginalExtension
* Type: `Boolean`
* Default: `true`Keep original extension if it not specified.
## Keyboard shortcuts
To change keyboard shortcuts, create a new rule in `File -> Preferences -> Keyboard Shortcuts`:
```json
{
"key": "ctrl+shift+d",
"command": "duplicate.execute"
}
```## Changelog
See the [Releases section of our GitHub project](https://github.com/mrmlnc/vscode-duplicate/releases) for changelogs for each release version.
## License
This software is released under the terms of the MIT license.