diff --git a/news/2 Fixes/1875.md b/news/2 Fixes/1875.md new file mode 100644 index 000000000000..d687dcf63a14 --- /dev/null +++ b/news/2 Fixes/1875.md @@ -0,0 +1 @@ +Change keyboard shortcut for `Run Selection/Line in Python Terminal` to `Shit+Enter`. diff --git a/package.json b/package.json index 58851c4dcdc6..b3d56f1cd7ea 100644 --- a/package.json +++ b/package.json @@ -98,8 +98,8 @@ "keybindings": [ { "command": "python.execSelectionInTerminal", - "key": "ctrl+enter", - "when": "editorFocus && editorHasSelection && editorLangId == python" + "key": "shift+enter", + "when": "editorFocus && editorLangId == python" } ], "commands": [ @@ -247,7 +247,7 @@ { "command": "python.execSelectionInTerminal", "group": "Python", - "when": "editorHasSelection && editorLangId == python" + "when": "editorFocus && editorLangId == python" }, { "command": "python.execSelectionInDjangoShell",