vscode-emacs icon indicating copy to clipboard operation
vscode-emacs copied to clipboard

Need support for Ctrl+Shift+Backspace keybinding

Open okia opened this issue 8 years ago • 1 comments

Ctrl+Shift+Backspace (delete entire line) is a popular keybinding and we should support it. Emulate Emacs behavior with respect to existing selection, i.e. if multiple lines are selected while Ctrl+Shift+Backspace has been pressed:

  • Remove the selection
  • Delete only one [current] line

okia avatar Dec 07 '16 05:12 okia

What about just using an existing action bound to a key ? The only difference is that this approach does not remove the current selection. At least is a temporary solution until the author accepts the pull request.

	{ 	"key": "ctrl+shift+backspace",
		"command": "editor.action.deleteLines",
                "when": "editorTextFocus && !editorReadonly" 
	},

savioret avatar May 04 '17 11:05 savioret