- Customizable Paste behavior
- Adds Translation/Localization support
- Adds Web support
- Adds Paste command
- Adds Workspace Trust support
- Adds Virtual Workspaces support
- Adds Remote Development 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.
It can replace the default Cut
, Copy
, and Paste
commands, using the current word when no text is selected.
Copy Word: Cut
cut the current wordCopy Word: Copy
copy the current wordCopy Word: Paste
paste over the current word
You only need to update your Keyboard Shortcuts.
Go to File / Preferences / Keyboard Shortcuts
and add three new entries:
{
"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"
}
{
"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"
}
- Use original
Cut
/Copy
behavior when no text is selected and no current word is defined (false
by default)
"copyWord.useOriginalCopyBehavior": true
- Indicates the behavior of the Paste command (choose between
original
,replaceWordAtCursor
orreplaceWordAtCursorWhenInTheMiddleOfTheWord
)
"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 |
Special thanks to the people that have contributed to the project:
- (@Krysl) - Add configuration to change how Paste command overwrite words (see PR)
- (@dudeNumber4) - Use original Cut/Copy behavior when no text is selected and no current word is defined (see PR)
- (@dudeNumber4) - Add
Paste
support (see PR)
MIT © Alessandro Fragnani