Notebooks: Add Command + Keyboard Shortcut to Clear Outputs of Active Cell (#6169)

* Add command to clear cell output with test

* Fix typo

* PR Comments
This commit is contained in:
Chris LaFreniere
2019-06-26 15:19:12 -07:00
committed by GitHub
parent caba5c9d26
commit 77fb060fde
10 changed files with 110 additions and 3 deletions

View File

@@ -65,6 +65,10 @@
"title": "%notebook.command.runactivecell%",
"icon": "resources/dark/touchbar_run_cell.png"
},
{
"command": "notebook.command.clearactivecellresult",
"title": "%notebook.command.clearactivecellresult%"
},
{
"command": "notebook.command.runallcells",
"title": "%notebook.command.runallcells%"
@@ -155,6 +159,10 @@
"command": "notebook.command.runactivecell",
"when": "notebookEditorVisible"
},
{
"command": "notebook.command.clearactivecellresult",
"when": "notebookEditorVisible"
},
{
"command": "notebook.command.runallcells",
"when": "notebookEditorVisible"
@@ -234,6 +242,11 @@
"key": "F5",
"when": "activeEditor == workbench.editor.notebookEditor"
},
{
"command": "notebook.command.clearactivecellresult",
"key": "Ctrl+Shift+R",
"when": "activeEditor == workbench.editor.notebookEditor"
},
{
"command": "notebook.command.runallcells",
"key": "Ctrl+Shift+F5",