From 31a8561245eab2673372b123f4949147df343b87 Mon Sep 17 00:00:00 2001 From: Alban Date: Wed, 13 May 2020 22:43:43 +0200 Subject: [PATCH] Adding the "evaluate" shortcut Adding the evaluate shortcut and disabling the other references of the same shortcut in VSCode when in debug mode. --- package.json | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/package.json b/package.json index 3702fe1..cf2fac6 100644 --- a/package.json +++ b/package.json @@ -440,6 +440,51 @@ "key": "ctrl+f2", "command": "workbench.action.debug.stop", "when": "inDebugMode" + }, + { + "key": "ctrl+shift+i", + "command": "editor.debug.action.selectionToRepl", + "when": "inDebugMode" + }, + { + "key": "ctrl+shift+i", + "command": "editor.action.formatDocument", + "when": "editorHasDocumentFormattingProvider && editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inDebugMode" + }, + { + "key": "ctrl+shift+i", + "command": "-editor.action.formatDocument", + "when": "editorHasDocumentFormattingProvider && editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly" + }, + { + "key": "ctrl+shift+i", + "command": "editor.action.formatDocument.none", + "when": "editorTextFocus && !editorHasDocumentFormattingProvider && !editorHasDocumentFormattingProvider && !editorReadonly && !inDebugMode" + }, + { + "key": "ctrl+shift+i", + "command": "-editor.action.formatDocument.none", + "when": "editorTextFocus && !editorHasDocumentFormattingProvider && !editorHasDocumentFormattingProvider && !editorReadonly" + }, + { + "key": "ctrl+shift+i", + "command": "notebook.format", + "when": "!editorTextFocus && activeEditor == 'workbench.editor.notebook' && !inDebugMode" + }, + { + "key": "ctrl+shift+i", + "command": "-notebook.format", + "when": "!editorTextFocus && activeEditor == 'workbench.editor.notebook'" + }, + { + "key": "ctrl+shift+i", + "command": "workbench.action.toggleDevTools", + "when": "isDevelopment && !inDebugMode" + }, + { + "key": "ctrl+shift+i", + "command": "-workbench.action.toggleDevTools", + "when": "isDevelopment" } ] },