[英]Run terminal inside VS Code for python script?
I'm on Linux Mint running VSCode and I was somehow able to run a terminal not as a separate window but right below an open Python file. 我在运行VSCode的Linux Mint上,并且能够以某种方式运行终端而不是作为单独的窗口,而是在打开的Python文件下方运行。 Seems to be easy on Win/OSX (Ctrl/Cmd+J and select Terminal tab) but not specifically a feature that I can choose when I'm on a Linux machine.
在Win / OSX上似乎很容易(按Ctrl / Cmd + J并选择“终端”选项卡),但是当我在Linux机器上时可以选择的功能不是特别的。 Any special keys to bring it back?
有什么特殊的钥匙可以带回来吗?
In general, Ctrl-` opens the integrated terminal in VS Code. 通常,Ctrl-`以VS Code打开集成终端。 Otherwise look under the
View
menu for the Integrated Terminal
option. 否则,请在“
View
菜单下查找“ Integrated Terminal
选项。 If you're looking for Python-specific options, there are Run Python File in Terminal
and Run Python Selection/Line in Terminal
commands from the command palette. 如果要查找特定于Python的选项,则在命令面板中有
Run Python File in Terminal
中Run Python File in Terminal
和Run Python Selection/Line in Terminal
Run Python File in Terminal
Run Python Selection/Line in Terminal
”命令。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.