An open API service indexing awesome lists of open source software.

https://github.com/alefragnani/vscode-copy-word

Copy Word Extension for Visual Studio Code
https://github.com/alefragnani/vscode-copy-word

editing vscode

Last synced: 4 months ago
JSON representation

Copy Word Extension for Visual Studio Code

Awesome Lists containing this project

README

          

[![](https://vsmarketplacebadges.dev/version-short/alefragnani.copy-word.svg)](https://marketplace.visualstudio.com/items?itemName=alefragnani.copy-word)
[![](https://vsmarketplacebadges.dev/downloads-short/alefragnani.copy-word.svg)](https://marketplace.visualstudio.com/items?itemName=alefragnani.copy-word)
[![](https://vsmarketplacebadges.dev/rating-short/alefragnani.copy-word.svg)](https://marketplace.visualstudio.com/items?itemName=alefragnani.copy-word)
[![](https://img.shields.io/github/actions/workflow/status/alefragnani/vscode-copy-word/main.yml?branch=master)](https://github.com/alefragnani/vscode-copy-word/actions?query=workflow%3ACI)




Copy Word in Cursor Logo

# What's new in Copy Word in Cursor 3.13

* Adds **Multi-cursor** support
* Published to **Open VSX**
* Customizable **Paste** behavior
* Adds **Translation/Localization** support
* Adds **Web** support

# Support

**Copy Word in Cursor** is an open source extension created for **Visual Studio Code**. While being free and open source, if you find it useful, please consider supporting it.











# Copy Word in Cursor

It can replace the default `Cut`, `Copy`, and `Paste` commands, using the _current word_ when no text is selected.

# Features

## Available commands

- `Copy Word: Cut` cut the current word
- `Copy Word: Copy` copy the current word
- `Copy Word: Paste` paste over the current word

## Using as your default shortcuts

You only need to update your **Keyboard Shortcuts**.

Go to `File / Preferences / Keyboard Shortcuts` and add three new entries:

### Windows/Linux
```json
{
"key": "Ctrl+c",
"command": "copy-word.copy",
"when": "editorTextFocus"
},
{
"key": "Ctrl+x",
"command": "copy-word.cut",
"when": "editorTextFocus"
},
{
"key": "Ctrl+v",
"command": "copy-word.paste",
"when": "editorTextFocus"
}
```
### Mac
```json
{
"key": "Cmd+c",
"command": "copy-word.copy",
"when": "editorTextFocus"
},
{
"key": "Cmd+x",
"command": "copy-word.cut",
"when": "editorTextFocus"
},
{
"key": "Cmd+v",
"command": "copy-word.paste",
"when": "editorTextFocus"
}
```

## Available Settings

* Use original `Cut`/`Copy` behavior when no text is selected and no _current word_ is defined _(`false` by default)_
```json
"copyWord.useOriginalCopyBehavior": true
```

* Indicates the behavior of the Paste command _(choose between `original`, `replaceWordAtCursor` or `replaceWordAtCursorWhenInTheMiddleOfTheWord`)_
```json
"copyWord.pasteWordBehavior": "replaceWordAtCursor"
```

Let's suppose you are pasting `bbb`, in the following scenario:

| cursor located at `\|` | `original` | `replaceWordAtCursor` | `replaceWordAtCursorWhenInTheMiddleOfTheWord` |
| -----------------------|------------|-----------------------|-----------------------------------------------|
| `\|`aaaa | bbbbaaaa | bbbb | bbbbaaaa |
| aaaa`\|` | aaaabbbb | bbbb | aaaabbbb |
| aa`\|`aa | aabbbbaa | bbbb | bbbb |

## Contributors

Special thanks to the people that have contributed to the project:

* (@Krysl) - Add configuration to change how Paste command overwrite words ([see PR](https://github.com/alefragnani/vscode-copy-word/pull/64))
* (@dudeNumber4) - Use original Cut/Copy behavior when no text is selected and no current word is defined ([see PR](https://github.com/alefragnani/vscode-copy-word/pull/45))
* (@dudeNumber4) - Add `Paste` support ([see PR](https://github.com/alefragnani/vscode-copy-word/pull/41))

# License

[MIT](LICENSE.md) © Alessandro Fragnani