Last active
June 4, 2023 12:01
-
-
Save qtkite/f2c97525640256cb536139093168191d to your computer and use it in GitHub Desktop.
Disable annoying shift + enter in vscode when writing python (not jupyter notebooks) (only tested on macOS)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"key": "shift+enter", | |
"command": "-workbench.action.terminal.sendSequence", | |
"when": "terminalFocus && terminalShellIntegrationEnabled && !accessibilityModeEnabled && terminalShellType == 'pwsh'", | |
"args": {"text":"\u001b[24~c"} | |
}, | |
{ | |
"key": "shift+enter", | |
"command": "-python.execSelectionInTerminal", | |
"when": "editorTextFocus && !findInputFocussed && !jupyter.ownsSelection && !notebookEditorFocused && !replaceInputFocussed && editorLangId == 'python'" | |
}, | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment