-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make python.execInREPL keep focus on editor #23843
Comments
Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue. |
I think the difference is that this issue is for the new native REPL and the linked issue/PR is for the terminal based REPL. But I think having these as a reference is useful for extra context. |
It looks like there is quite a bit of interest in this. Has now exceeded the required 7 upvotes. Hope this feature gets taken up! |
FWIW this SO post has a workaround. I've tweaked the {
"key": "shift+enter",
"command": "runCommands",
"when": "editorTextFocus && activeEditor != 'workbench.editor.notebook' && editorLangId == 'python'",
"args": {
"commands": [
"python.execInREPL",
"workbench.action.focusFirstEditorGroup"
]
}
} |
@anthonykim1 - I feel like the default should be to keep the focus in the editor, trying to just shift+enter down a file requires you to move focus back after every execution, and really makes the smart execute feature less effective. executeToREPL.mp4 |
thanks all for great feedback. Let me bring this up to the team and try to make it happen soon. |
When I am in a Python editor and run python.execInREPL it will send selected code to the Python REPL and then switch the window focus. I would like the option to keep the focus on the editor window, similar to the behavior of Jupyter's Run Selection/Line in Interactive Window.
The text was updated successfully, but these errors were encountered: