是否可以在 Rubymine 中运行终端/命令提示符?

发布于 2024-11-28 08:23:32 字数 240 浏览 6 评论 0原文

如果我可以在 ruby​​mine 中运行某种命令行,我的工作速度会更快,这可能吗?测试时,我必须反复切换到终端窗口,这非常烦人。

我可以运行 Rails 控制台、沙盒版本的 ruby​​mine 以及我的 Rails 服务器和 spork 服务器。

如果 ruby​​mine 中有一个命令提示符,那就太好了,这也会加快速度。事实上,这将使 ruby​​mine 100% 完美地适合我的 Rails 开发,因为它满足其他所有需要。

I would work much faster if I could have some kind of command line running inside rubymine, is this possible? When testing I repeatedly have to switch to my terminal window and it gets quite annoying.

I can run rails console and also the sandboxed version side rubymine aswell as my rails server and spork server.

It would be nice to have a command prompt inside rubymine also would speed things up. Infact that would make rubymine 100% perfect for my rails development as it does everything else require.

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

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

发布评论

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

评论(3

鯉魚旗 2024-12-05 08:23:32

基于IDEA平台的产品没有这样的功能。您需要在外部运行终端。请注意,为了方便起见,您可以创建一个外部工具来在当前文件或模块目录中运行终端窗口。

更新:PhpStorm/WebStorm 7.0、IDEA 13、RubyMine 6、PyCharm 2.7.3 中添加了终端(SSH 控制台)。

There is no such feature in IDEA platform based products. You need to run terminal externally. Note that you can create an External Tool to run terminal window in the current file or module directory for convenience.

UPDATE: Terminal (SSH console) was added in PhpStorm/WebStorm 7.0, IDEA 13, RubyMine 6, PyCharm 2.7.3.

诺曦 2024-12-05 08:23:32

我已经使用 CrazyCoder 的说明来执行此操作。以下是 Windows 的说明:

  • 文件、设置
  • 菜单下半部分的标题为 IDE 设置,在此列表中查找外部工具
  • 单击唯一可用的按钮(对于大多数情况),[+]
  • 为您的自定义事物命名(“终端”) “?“命令提示符”?)
    • 大部分内容你只需留空即可
    • 单击“程序”旁边的“...”按钮,然后只需导航至 Windows/system32/cmd.exe
    • 最后,除非您希望将起始命令行(终端)路径设置为 C:\Windows\system32(更改您的路径),否则只需单击下面“工作目录”旁边的 [...],并将您的路径更改为桌面或您喜欢的任何路径。
  • 单击“确定”。

你完成了!就是这么简单。现在要访问它(无需重新启动),请单击“工具”,然后在“XML 操作”下(无论如何对我来说),您应该找到“终端”或“cmd”或您所说的任何名称。您可以使用“ipconfig”命令对其进行测试。您始终可以返回到您最初访问的 settings/external-tools 位置来编辑您的设置(如您的默认路径),或者制作另一个自定义工具,因为这(RubyMine 外部工具创建者)显然是一个非常强大的工具。

I have used CrazyCoder's instructions to do this. Here are the instructions for Windows:

  • File, Settings
  • bottom half of menu is titled IDE Settings, look in this list to find External Tools
  • Click in the only available button (for most), [+]
  • give your custom thing a name ("terminal"? "command prompt"?)
    • most of this stuff you just leave blank
    • click the [...] button next to Program, then simply navigate to Windows/system32/cmd.exe
    • Lastly, unless you want to have your starting command line (terminal) path as C:\Windows\system32 (CHANGE YOUR PATH), simply click on the [...] next to the "Working Directory" just below, and change your path to Desktop or whatever it is you prefer.
  • Click OK.

You're done! It's that easy. Now to access this (no restart required), click on Tools, and then under 'XML actions' (for me anyway) you should find your "terminal" or "cmd" or whatever it is you called it. You can test it out with an 'ipconfig' command. You can always go back to the the settings/external-tools place you went to in the first place to edit your settings (like your default path), or to make another custom tool, because this (RubyMine External Tools creator) is obviously a very powerful tool.

隔纱相望 2024-12-05 08:23:32

如果有人在版本 7 中搜索 ruby​​mine。

Alt+f12 打开终端。

来源:https://www.jetbrains.com/ruby /webhelp/working-with-embedded-local-terminal.html

If someone is searching this for rubymine in version 7.

Press Alt+f12 for the terminal.

Source : https://www.jetbrains.com/ruby/webhelp/working-with-embedded-local-terminal.html

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