如何在外部窗口(终端)中运行我的代码

发布于 2025-01-25 20:12:52 字数 249 浏览 1 评论 0原文

我希望我的Python代码在外部终端(窗口)中运行。

显然我必须编辑“启动”文件,我应该在哪里 将选项“控制台:InternalConsole”更改为“控制台:外部终端”。 问题是,我找不到“启动”文件。我想我有 设置一个,但我不确定该怎么做。

似乎扩展名“代码跑者”可以做到这个问题, 但是扩展分解了。

我试图在“设置”菜单中进行更改,我选择了要运行的代码 在外部终端中,但仍使用内部终端。

可能是你可以给我一个方向吗? 谢谢

I want my python code to be run in external terminal (window).

Obviously i have to edit 'launch.json' file, where I should
change the option 'console:internalConsole' to 'console:externalTerminal'.
Problem is, I don't find a 'launch.json' file. I guess I have
to set up one, but I'm not sure how to do it.

Seems that the extension 'code runner' could do this trick,
but the extension breaks down.

I tried to make changes in the settings menu, I chose code to be run
in external terminal, but it still uses the internal one.

May be you can give me a direction ?
Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

太阳男子 2025-02-01 20:12:52

它完成了。

it's done.Created launch.json file and 'console: externalTerminal'

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文