PyCharm 聚焦 Python 控制台,用于在运行时输入 [英] PyCharm focus Python Console for input upon run

查看:65
本文介绍了PyCharm 聚焦 Python 控制台,用于在运行时输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 PyCharm 2018.2.5(社区版)中,我已经将键盘快捷键绑定到在控制台中运行文件".这会打开控制台并运行文件,但不会将控制台聚焦为输入,我输入的任何内容都会进入我的代码.(有时当我使用切换器聚焦 Python 控制台时,它会在我键入时尝试搜索控制台变量.)

In PyCharm 2018.2.5 (Community Edition), I have bound a keyboard shortcut to "Run File in Console". This launches opens the console and runs the file, but does not focus the console for input and anything I type goes into my code. (Sometimes when I use the switcher to focus the Python console it will try to search console variables when I type.)

有没有办法在 Python 控制台启动时自动聚焦输入?

Is there a way to automatically focus the Python console for input when it is launched?

推荐答案

代码和控制台切换的快捷键是Alt+4;通过单击控制台或使用此快捷方式,您将来打开的控制台将被输入选中.

The shortcut to switch between the code and console is Alt+4; by clicking on the console or using this shortcut, future consoles you open will be selected by the input.

这篇关于PyCharm 聚焦 Python 控制台,用于在运行时输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆