Skip to content

Commit 5eb48c2

Browse files
authored
Change keyboard shortcut for execSelectionInTerminal to Shit+Enter (#1961)
* Change keyboard shortcut for execSelectionInTerminal to Shit+Enter * Update condition for context menu
1 parent a93ce84 commit 5eb48c2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

news/2 Fixes/1875.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Change keyboard shortcut for `Run Selection/Line in Python Terminal` to `Shit+Enter`.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@
9898
"keybindings": [
9999
{
100100
"command": "python.execSelectionInTerminal",
101-
"key": "ctrl+enter",
102-
"when": "editorFocus && editorHasSelection && editorLangId == python"
101+
"key": "shift+enter",
102+
"when": "editorFocus && editorLangId == python"
103103
}
104104
],
105105
"commands": [
@@ -247,7 +247,7 @@
247247
{
248248
"command": "python.execSelectionInTerminal",
249249
"group": "Python",
250-
"when": "editorHasSelection && editorLangId == python"
250+
"when": "editorFocus && editorLangId == python"
251251
},
252252
{
253253
"command": "python.execSelectionInDjangoShell",

0 commit comments

Comments
 (0)