Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need support for Ctrl+Shift+Backspace keybinding #33

Open
okia opened this issue Dec 7, 2016 · 1 comment
Open

Need support for Ctrl+Shift+Backspace keybinding #33

okia opened this issue Dec 7, 2016 · 1 comment

Comments

@okia
Copy link
Contributor

okia commented Dec 7, 2016

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
@savioret
Copy link

savioret commented May 4, 2017

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" 
	},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants