Is there another way than pressing Ctrl+. until the whole cell is selected and then pressing Del?
If this is not built in, can I create some sort of a global macro to do this and bind it to a keyboard shortcut?
Answer
Referencing Szabolcs's answer, here is the code that must be added to KeyEventTranslations.tr
:
Item[KeyEvent["m", Modifiers -> {Control}],
FrontEndExecute[{
FrontEnd`SelectionMove[FrontEnd`SelectedNotebook[], All, Cell],
FrontEnd`FrontEndToken["Clear"]
}]],
I chose Ctrl+M at random; change it to whatever you want.
See this before you edit the file.
Comments
Post a Comment