Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>CutCopyPaste DELETENew to Visual Studio Code? Get it now.
CutCopyPaste DELETE

CutCopyPaste DELETE

WhiteCat Software

|
35 installs
| (0) | Free
Adds Delete command to the editor's right click context menu
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CutCopyPaste DELETE

Adds "Delete" command to the editor's right-click context menu.

As a long time user of Notepad.exe I am used to right-clicking on text, and deleting it from the context menu. For some reason VS Code does not have the "Delete" command in the right-click context menu, so I made this.

This extension has some some extra features other than deleting selected text. Read more on that in the Extension Settings section below.

I hope you will find it useful.

Features

context menu

Depending on how you configure it, this extension can do the following:

  • Delete selected text
  • Delete the word under the caret (if no text selected)
    • Delete line if the caret is placed at the end of the last character on the line
  • Delete line if nothing is selected
    • Delete the line / Empty the line (Will leave the line, it will just be empty)
  • Trim whitespace left
    • Leave one space (If there are multiple spaces, it will leave only one)
  • Trim whitespace right
    • Leave one space (If there are multiple spaces, it will leave only one)

Extension Settings

This extension contributes the following settings:

Restart Visual Studio Code for changes to take effect

  • cutCopyPasteDelete.deleteWordUnderTheCaret.enabled

    If enabled, you can right click on a word and click "Delete" to delete it, no need to select it first

  • cutCopyPasteDelete.deleteWordUnderTheCaret.deleteLineWhenCaretAtEndOfLineCharacter.enabled

    This a modification to deleteWordUnderTheCaret. If enable it, when the caret is placed after the last character on the line, it will delete the whole line instead of the last word

  • cutCopyPasteDelete.deleteLineIfNoSeletion.enabled

    If enabled, will delete the whole line when the caret is placed on whitespace. If deleteWordUnderTheCaret is disabled, will delete lines when right clicking on words too

  • cutCopyPasteDelete.deleteLineIfNoSeletion.emptyLine.enabled

    This is a modification to deleteLineIfNoSeletion. If enabled, empties the line instead of deleting it

  • cutCopyPasteDelete.trim.left.enabled

    If enabled, will trim all whitespace to the left of the word or selected text

  • cutCopyPasteDelete.trim.left.leaveOneSpace

    If enabled, will leave one whitespace after trimming to the left of the word or selected text

  • cutCopyPasteDelete.trim.right.enabled

    If enabled, will trim all whitespace to the right of the word or selected text

  • cutCopyPasteDelete.trim.right.leaveOneSpace

    If enabled, will leave one whitespace after trimming to the right of the word or selected text

Release Notes

1.0.0 (2024-09-25)

  • Initial release
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft