简体   繁体   English

在 PyCharm 中显示运行和调试工具栏

[英]Show run & debug toolbar in PyCharm

How do I get this run & debug toolbar to show in PyCharm?如何让这个运行和调试工具栏显示在 PyCharm 中? It shows in some of my projects, but not others.它显示在我的一些项目中,但没有显示在其他项目中。

And, in the spirit of teaching a man to fish, is there an easy way to find this using PyCharm's own help facility?而且,本着授人以渔的精神,有没有使用 PyCharm 自己的帮助工具找到它的简单方法?

在此处输入图像描述

As @lukassz commented above, if you want to have the run/debug toolbar, you have to edit your run/debug configuration:正如@lukassz 上面评论的那样,如果你想要运行/调试工具栏,你必须编辑你的运行/调试配置:

The manual way:手动方式:

Go to Run > Edit Configuration > Hit the + sign on the top left of the subsequent window > Create a new run configuration.转到运行 > 编辑配置 > 点击后续窗口左上角的+号 > 创建新的运行配置。

The semi-automatic way:半自动方式:

With the file that you want to run, open on your editor, hit Shift + Alt + F10 (if you are using the default keymap) or Run > Run/Debug.使用您要运行的文件,在您的编辑器上打开,按Shift + Alt + F10 (如果您使用的是默认键盘映射)或运行 > 运行/调试。
On the subsequent pop-up window, choose the file to run and PyCharm will (try to) run it for you.在随后的弹出窗口中,选择要运行的文件,PyCharm 将(尝试)为您运行它。
In the process, a configuration will be generated, which persists.在此过程中,将生成一个配置,该配置将持续存在。

The fishing lesson: Here is a pond with fish and the tools to catch the fish in question.钓鱼课:这里有一个池塘,里面有鱼,还有钓鱼的工具。

Happy fishing and good luck:D快乐钓鱼,祝你好运:D

I was able to show the 'Run Configurations' toolbar by selecting View / Appearance / Toolbar .我能够通过选择View / Appearance / Toolbar来显示“Run Configurations”工具栏。

在此处输入图像描述

If you right-click on the Toolbar, you can access 'Customize Menus and Toolbars' for further customisation.如果右键单击工具栏,您可以访问“自定义菜单和工具栏”以进行进一步的自定义。

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

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