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.
如果我能让某种命令行在rubymine中运行,我会工作得更快,这可能吗?在测试时,我必须反复切换到终端窗口,这很烦人。
I can run rails console and also the sandboxed version side rubymine aswell as my rails server and spork server.
我可以运行rails控制台和沙箱版本的rubymine以及rails服务器和spork服务器。
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.
如果在rubymine中有一个命令提示符也能加快速度,那就太好了。事实上,这将使rubymine 100%地适合rails开发,因为它可以完成其他所有需要的工作。
3 个解决方案
#1
14
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.
基于IDEA平台的产品没有这样的特性。您需要在外部运行终端。注意,您可以创建一个外部工具来在当前文件或模块目录中运行终端窗口,以方便使用。
UPDATE: Terminal (SSH console) was added in PhpStorm/WebStorm 7.0, IDEA 13, RubyMine 6, PyCharm 2.7.3.
更新:PhpStorm/WebStorm 7.0添加了终端(SSH控制台),IDEA 13, RubyMine 6, PyCharm 2.7.3。
#2
10
I have used CrazyCoder's instructions to do this. Here are the instructions for windows (nerrr)
我已经按照CrazyCoder的指示做了这件事。这里是windows的说明(nerrr)
- File, Settings
- 文件,设置
- bottom half of menu is titled IDE Settings, look in this list to find External Tools (halfway there, it is retarded how easy this is to do I love this IDE)
- 菜单的下半部分被命名为IDE设置,在这个列表中查找外部工具(在一半的地方,这是多么容易做到我喜欢这个IDE)
- 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
- 单击[…在程序旁边的按钮,然后导航到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.
- 最后,除非你想要启动命令行(终端)路径C:\Windows\system32(改变你的路径),简单地点击[…在下面的“工作目录”旁边,把你的路径改成桌面或者你喜欢的。
- 给自定义的东西起个名字(“终端”?“命令提示符”?)大多数这些东西你只留下空白点击[…在程序旁边的按钮,然后简单地导航到Windows/system32/cmd。exe最后,除非你想要启动命令行(终端)路径C:\Windows\system32(改变你的路径),简单地点击[…在下面的“工作目录”旁边,把你的路径改成桌面或者你喜欢的。
- Click OK.
- 单击OK。
- You're done! It's that easy. Now to access this (no restart req'd) 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.
- 你已经完成了!它是那么容易。现在要访问它(不重新启动req),请单击工具,然后在“XML动作”(对我而言)下,您应该找到“终端”或“cmd”,或者您所称的任何东西。
- test it out with an 'ipconfig' command.
- 使用“ipconfig”命令进行测试。
- 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.
- 您总是可以回到设置/外部工具的位置,您首先去编辑您的设置(像您的默认路径),或者制作另一个自定义工具。因为这个(RubyMine外部工具创建者)显然是一个非常强大的工具。
#3
5
If someone is searching this for rubymine in version 7.
Press Alt+f12 for the terminal.
如果有人在版本7中搜索rubymine的话。按Alt+f12进入终端机。
Source : https://www.jetbrains.com/ruby/webhelp/working-with-embedded-local-terminal.html
来源:https://www.jetbrains.com/ruby/webhelp/working-with-embedded-local-terminal.html
#1
14
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.
基于IDEA平台的产品没有这样的特性。您需要在外部运行终端。注意,您可以创建一个外部工具来在当前文件或模块目录中运行终端窗口,以方便使用。
UPDATE: Terminal (SSH console) was added in PhpStorm/WebStorm 7.0, IDEA 13, RubyMine 6, PyCharm 2.7.3.
更新:PhpStorm/WebStorm 7.0添加了终端(SSH控制台),IDEA 13, RubyMine 6, PyCharm 2.7.3。
#2
10
I have used CrazyCoder's instructions to do this. Here are the instructions for windows (nerrr)
我已经按照CrazyCoder的指示做了这件事。这里是windows的说明(nerrr)
- File, Settings
- 文件,设置
- bottom half of menu is titled IDE Settings, look in this list to find External Tools (halfway there, it is retarded how easy this is to do I love this IDE)
- 菜单的下半部分被命名为IDE设置,在这个列表中查找外部工具(在一半的地方,这是多么容易做到我喜欢这个IDE)
- 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
- 单击[…在程序旁边的按钮,然后导航到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.
- 最后,除非你想要启动命令行(终端)路径C:\Windows\system32(改变你的路径),简单地点击[…在下面的“工作目录”旁边,把你的路径改成桌面或者你喜欢的。
- 给自定义的东西起个名字(“终端”?“命令提示符”?)大多数这些东西你只留下空白点击[…在程序旁边的按钮,然后简单地导航到Windows/system32/cmd。exe最后,除非你想要启动命令行(终端)路径C:\Windows\system32(改变你的路径),简单地点击[…在下面的“工作目录”旁边,把你的路径改成桌面或者你喜欢的。
- Click OK.
- 单击OK。
- You're done! It's that easy. Now to access this (no restart req'd) 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.
- 你已经完成了!它是那么容易。现在要访问它(不重新启动req),请单击工具,然后在“XML动作”(对我而言)下,您应该找到“终端”或“cmd”,或者您所称的任何东西。
- test it out with an 'ipconfig' command.
- 使用“ipconfig”命令进行测试。
- 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.
- 您总是可以回到设置/外部工具的位置,您首先去编辑您的设置(像您的默认路径),或者制作另一个自定义工具。因为这个(RubyMine外部工具创建者)显然是一个非常强大的工具。
#3
5
If someone is searching this for rubymine in version 7.
Press Alt+f12 for the terminal.
如果有人在版本7中搜索rubymine的话。按Alt+f12进入终端机。
Source : https://www.jetbrains.com/ruby/webhelp/working-with-embedded-local-terminal.html
来源:https://www.jetbrains.com/ruby/webhelp/working-with-embedded-local-terminal.html