简体   繁体   English

VScode中的键盘快捷键问题Python

[英]The keyboard shortcut problem in VScode Python

After setting up my Keyboard shortcut in Vscode-Python,在 Vscode-Python 中设置我的键盘快捷键后,

I use "F1"(run selection in interactive window) but didn't happen any thing, no error and no work.我使用“F1”(在交互式窗口中运行选择)但没有发生任何事情,没有错误也没有工作。 在此处输入图像描述 . .

But this shortcut can work in Python3.8.5(64-bit) from other computer.但是这个快捷方式可以在其他计算机上的 Python3.8.5(64 位)中工作。

How can I fix it?我该如何解决?

Python:3.8.6(64-bit) Jupyter:2020.12.414227025 Computer: MSI, Windows10-20H2, AMD Python:3.8.6(64-bit) Jupyter:2020.12.414227025 电脑: MSI, Windows10-20H2, AMD

Thanks!谢谢!

Finally, I used Keybindings(.json) to adjust this problem.最后,我使用 Keybindings(.json) 来调整这个问题。

Clean up: "when": "editorTextFocus && jupyter.ownsSelection && !findInputFocussed && !notebookEditorFocused && !replaceInputFocussed && editorLangId == 'python'"清理: “当”:“editorTextFocus && jupyter.ownsSelection && !findInputFocused && !notebookEditorFocused && !replaceInputFocused && editorLangId == 'python'”

Worked successfully now!现在工作成功!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM