Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme tweaks #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# vscode-duplicate

> Ability to duplicate files and directories in VS Code.
Duplicate files and directories in VS Code.

## Donate
## Support and PRs welcome

If you want to thank me, or promote your Issue.
I'm currently busy with work and don't have time to support plugins and modules. I will be glad of your support or PRs.

[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://paypal.me/mrmlnc)
If you'd like to thank me, or promote your issue, you can donate to my PayPal.

> 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.
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://paypal.me/mrmlnc)

## Install

Expand All @@ -19,29 +19,29 @@ See the [extension installation guide](https://code.visualstudio.com/docs/editor

## 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.
Method one:

The second 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

1. Open the file.
2. Press `F1` and select `Duplicate file`.
3. Enter the new path for the duplicate.
Methond two:

## About file extension
1. Open a file
2. Press `F1` and select `Duplicate file`
3. Enter the new path for the duplicate

> :warning: If you do not specify a new extension, the previous **will be saved**.
## Setting a file extension

But you can use two special characters:
When setting the name of the new file, you can specify a file extension by three methods:

* `!!ext` – don't preserve original extension.
* `&&ext` – preserve original extension (available with `duplicate.keepOriginalExtension` option).
* Don't set anything - the previous will be preserved
* `!!ext` – don't preserve original extension
* `&&ext` – preserve original extension (override with `duplicate.keepOriginalExtension`)

For example:

* `nameOfFile` - create filepath with original extension
* `nameOfFile!!ext` – create filepath without original extension
* `nameOfFile&&ext` – create filepath with original extension

Expand Down Expand Up @@ -74,8 +74,8 @@ To change keyboard shortcuts, create a new rule in `File -> Preferences -> Keybo

## Changelog

See the [Releases section of our GitHub project](https://github.com/mrmlnc/vscode-duplicate/releases) for changelogs for each release version.
The [Releases section of our GitHub project](https://github.com/mrmlnc/vscode-duplicate/releases) has a changelog for each release.

## License

This software is released under the terms of the MIT license.
[MIT](https://github.com/mrmlnc/vscode-duplicate/blob/master/LICENSE)