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 50 by default, but can be configured in the settings.
Use the Command Palette to run "Better Kill Ring: Clear the kill ring".
No default keybinding is assigned.
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 50
.
When enabled (default true
), consecutive kills made from the same location are coalesced into a single kill-ring entry (Emacs-style).
Note: This setting was renamed in 1.0.0 (was betterKillRing.multiLineKill.enabled
) and the default behavior was reversed (now enabled by default).
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.