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
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
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