Codesandbox-client: Delete Line key binding

Created on 9 Apr 2018  路  7Comments  路  Source: codesandbox/codesandbox-client

It would be nice to have a key binding that allows you to delete the current line that the cursor is in. I normally use this a lot in most local editors that I'm working in, generally something like ctrl + D as a shortcut.

Most helpful comment

Actually, being like VSCode is not just a choice for key bindings: the editor part uses Monaco which is the editor that powers VS Code: https://github.com/Microsoft/monaco-editor

All 7 comments

The key bindings are the same than VSCode.

You can use 鈬р寴K to delete a line on Mac (Probably something similar on Windows).

Awesome! That worked, really appreciate that! Looks like VS Code is ctrl + shift + k for vs code (https://code.visualstudio.com/docs/getstarted/keybindings#_basic-editing). Still, I think that there is a good mix of editors that default with ctrl + d, etc, so being able to bind it would be a really nice feature.

Actually, being like VSCode is not just a choice for key bindings: the editor part uses Monaco which is the editor that powers VS Code: https://github.com/Microsoft/monaco-editor

Hey @singletoncoding the codesandbox uses Monaco like VSCode and CodeMirror for VIM mode, so he uses the commands line of editor you choose.

You can close this issue?

So, I think my question still stands on this. Is there a way for me to set a specific key binding for deleting a line. While the editors might chose one, it doesn't necessarily mean it's the one that I prefer to use. When I work with editors, I change this key binding.

Perhaps there's a way that I can set it for the editor through code sandbox that I'm just not familiar with (I use webstorm, so I'm not overly familiar with these editors).

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@singingwolfboy You can do that in VSCode now by going to your keybind settings like you would on desktop :D

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Telokis picture Telokis  路  24Comments

rdmurphy picture rdmurphy  路  20Comments

bcbrian picture bcbrian  路  33Comments

jthegedus picture jthegedus  路  21Comments

Nico-L picture Nico-L  路  21Comments