-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Run selection/line in python terminal keyboard shortcut not working #12057
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
Comments
Hey @DTKx! The default shortcut for running selections/lines is Shift + Enter, not Ctrl + Enter. You may be able to to configure it to F9 by adding the following content to your
You'll know if it was successfully updated if you open a Python file and right click on the editor, then look for the "Run Selection/Line in Python Terminal" command. The new shortcut will appear right next to it: Would you mind pasting here a screenshot of what it shows next to this command for you? |
Hello @luabud ! Therefore, I knew i the modification was acknowledged, however when I hit the keyboard shortcut mentioned in the options the command run selection is not performed. I have checked the json file and I found two duplicates for the execSelection So I commented one to test and still the keyboard shortcut did not work. To try again, I modified the shortcut to f9 and tested, but still no answer. Moreover, I am not sure if this would help, but i have tried to reinstall visual studio, however it did not uninstalled completellly, I wonder if a complete uninstall could fix this issue for the moment, i also checked and I did not found a documentation on how to completelly uninstall VS. Any potential clue is welcomed :) Thanks |
Thanks for the info, @DTKx! Since the shortcuts aren't triggering anything, I believe the issue would be in VS Code and not the Python extension. A reinstall might help indeed. You raised a good point, it isn't documented how to completely uninstall VS Code. I'll open an issue on our docs repo, but in the mean time this could help: https://superuser.com/questions/1380208/how-to-completely-uninstall-visual-studio-code-from-windows-10. I'm closing the issue since there's no action item on the Python extension. Let me know how the reinstall goes, I hope it works! |
#1349
Environment data
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version #3977): falsepython.languageServer
setting: 0.5.45.0Expected behaviour
When selecting some lines codes and pressing the keyboard F9 (as default) for running selection line in the python terminal it was expected to run the selected lines in the python terminal.
Actual behaviour
Hey! I would like to please ask for some help. Thanks!
When selecting some lines codes and pressing the F9 as default for running selection line in the python terminal no actions happened, however pressing the same command manually yes.
Therefore i have tried to change the shortcut to ctrl + enter (accodring to #1349)
also eliminating any duplicate shortcut,however still no action was performed.
Steps to reproduce:
select code
press keyboard shortcut recognized as running selection/lines in python terminal (tried using the f9 and also changing the keyboard to ctrl+enter.
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)XXXX
The text was updated successfully, but these errors were encountered: