From 2b239ec012dfd5721ff9360ac70a3d6d708c7ecd Mon Sep 17 00:00:00 2001 From: Seb Julliand Date: Tue, 16 Sep 2025 12:05:48 +0200 Subject: [PATCH 1/2] Use distinct keybord shortcuts for explaining and running Signed-off-by: Seb Julliand --- package.json | 8 ++++---- src/views/results/contributes.json | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 3c4a0904..c60b2437 100644 --- a/package.json +++ b/package.json @@ -1460,14 +1460,14 @@ }, { "command": "vscode-db2i.editorExplain.withRun", - "key": "ctrl+shift+r", - "mac": "cmd+shift+r", + "key": "ctrl+u", + "mac": "cmd+u", "when": "editorLangId == sql && resourceExtname != .inb" }, { "command": "vscode-db2i.editorExplain.withoutRun", - "key": "ctrl+alt+r", - "mac": "cmd+alt+r", + "key": "ctrl+e", + "mac": "cmd+e", "when": "editorLangId == sql && resourceExtname != .inb" }, { diff --git a/src/views/results/contributes.json b/src/views/results/contributes.json index 47e66694..74fd4dce 100644 --- a/src/views/results/contributes.json +++ b/src/views/results/contributes.json @@ -217,14 +217,14 @@ }, { "command": "vscode-db2i.editorExplain.withRun", - "key": "ctrl+shift+r", - "mac": "cmd+shift+r", + "key": "ctrl+u", + "mac": "cmd+u", "when": "editorLangId == sql && resourceExtname != .inb" }, { "command": "vscode-db2i.editorExplain.withoutRun", - "key": "ctrl+alt+r", - "mac": "cmd+alt+r", + "key": "ctrl+e", + "mac": "cmd+e", "when": "editorLangId == sql && resourceExtname != .inb" } ] From 730ca178fe6902acb09e18f1ac2171150e139d94 Mon Sep 17 00:00:00 2001 From: Seb Julliand Date: Mon, 22 Sep 2025 15:51:44 +0200 Subject: [PATCH 2/2] Added key bindings for "run all" and "run from cursor" Signed-off-by: Seb Julliand --- package.json | 12 ++++++++++++ src/views/results/contributes.json | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/package.json b/package.json index c60b2437..7119bf0c 100644 --- a/package.json +++ b/package.json @@ -1458,6 +1458,18 @@ "mac": "cmd+ctrl+r", "when": "editorLangId == sql" }, + { + "command": "vscode-db2i.runEditorStatement.multiple.all", + "key": "ctrl+shift+a", + "mac": "cmd+shift+a", + "when": "editorLangId == sql && resourceExtname != .inb" + }, + { + "command": "vscode-db2i.runEditorStatement.multiple.from", + "key": "ctrl+shift+r", + "mac": "cmd+shift+r", + "when": "editorLangId == sql && resourceExtname != .inb" + }, { "command": "vscode-db2i.editorExplain.withRun", "key": "ctrl+u", diff --git a/src/views/results/contributes.json b/src/views/results/contributes.json index 74fd4dce..d3e76131 100644 --- a/src/views/results/contributes.json +++ b/src/views/results/contributes.json @@ -215,6 +215,18 @@ "mac": "cmd+ctrl+r", "when": "editorLangId == sql" }, + { + "command": "vscode-db2i.runEditorStatement.multiple.all", + "key": "ctrl+shift+a", + "mac": "cmd+shift+a", + "when": "editorLangId == sql && resourceExtname != .inb" + }, + { + "command": "vscode-db2i.runEditorStatement.multiple.from", + "key": "ctrl+shift+r", + "mac": "cmd+shift+r", + "when": "editorLangId == sql && resourceExtname != .inb" + }, { "command": "vscode-db2i.editorExplain.withRun", "key": "ctrl+u",