Skip to content

Instantly share code, notes, and snippets.

@qtkite
Last active June 4, 2023 12:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qtkite/f2c97525640256cb536139093168191d to your computer and use it in GitHub Desktop.
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)
[
{
"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