Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to run terminal/command prompt inside Rubymine?

Tags:

ruby

rubymine

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.

like image 340
LondonGuy Avatar asked Aug 08 '11 13:08

LondonGuy


2 Answers

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.

like image 134
CrazyCoder Avatar answered Sep 18 '22 12:09

CrazyCoder


I have used CrazyCoder's instructions to do this. Here are the instructions for 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)
  • 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 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.
  • 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.
like image 37
boulder_ruby Avatar answered Sep 22 '22 12:09

boulder_ruby