What's new in Copy Word in Cursor 3.12
- 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
{
"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
{
"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)
"copyWord.useOriginalCopyBehavior": true
- Indicates the behavior of the Paste command (choose between
original
, replaceWordAtCursor
or replaceWordAtCursorWhenInTheMiddleOfTheWord
)
"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)
- (@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)
License
MIT © Alessandro Fragnani