简体   繁体   English

Python- Atom文本编辑器中的替代终端

[英]Python- Alternative terminal in Atom text editor

Right now I'm running Python in Atom with Platformio as my terminal. 现在,我以Platformio作为终端在Atom中运行Python。 First off, what's the keyboard shortcut to run the file? 首先,运行文件的键盘快捷键是什么? Secondly, is there a better terminal package out there? 其次,那里有更好的端子包吗? I'd like more features such as right clicking and selecting run the file or something that makes running the file easier (maybe a run button). 我想要更多功能,例如右键单击并选择运行文件,或使运行文件更容易的某些功能(可能是运行按钮)。 I switch between files quite frequently so I'd like an alternative other than using the up arrow to run previous command. 我经常在文件之间切换,因此除了使用向上箭头运行上一个命令外,我还希望有其他选择。

I use Atom for python. 我将Atom用于python。 The best terminal plugin I have found is Platformio. 我发现最好的终端插件是Platformio。 I have a plugin named script that allows me to run python scripts from the editor window. 我有一个名为script的插件,该插件使我可以从编辑器窗口运行python脚本。 The command also has a shortcut to speed up the process. 该命令还具有一个加快过程的快捷方式。 Load script and it will appear under the packages menu. 加载脚本,它将显示在“程序包”菜单下。 It also defines the shortcut for 'run script' as the command-I keys. 它还将“运行脚本”的快捷方式定义为Command-I键。

Lately I've been running python script using the Hydrogen plugin. 最近,我一直在使用Hydrogen插件运行python脚本。 This allows in-line plotting along with running your script. 这允许在执行脚本的同时进行内联绘图。 Answers and plots appear in the editor pane. 答案和图解出现在编辑器窗格中。 Its very nice if you have to plot. 如果必须绘图,它非常好。

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

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