This extension is designed to be a better kill ring for VS Code. It can be used with other key maps to bring the full power of kill/yank (and a history) to bear.
⌃ Ctrl
+ k
will kill (remove) the text from your cursor to the end of the line.
⌃ Ctrl
+ y
will yank (paste) the text that you last killed to where your cursor is.
-
Windows:
⌃ Ctrl
+⌥ Alt
+y
-
Mac:
⌃ Ctrl
+⌘ Cmd
+y
View the kill ring (history of kills you've done) and choose a kill to yank. The maximum size is 20 by default, but can be configured in the settings.
You may want to ensure that there are no duplicated key mappings. You can do that after installing the extension by going to the Keyboard Shortcuts settings and searching for "Better Kill Ring" and then right-clicking on the Keybinding and selecting "Show Same Keybindings."
This extension contributes two configuration options. Please file an issue if you want to customize the behavior further.
The maximum number of kills to keep in the kill ring. The default is 20
.
When enabled, if the cursor is in the same position as the last kill, the next kill will
be appended to the last kill, resulting in a single entry in the kill ring. The default is false
.
See the Issues page
See the Releases page or the CHANGELOG.
See VS Code docs.
There is a launch configuration for the extension tests.
The extension is bundled using using esbuild automatically when vsce is run.
See VS Code docs.