Command line console (shell)

Hello,

is there a command line console integrated into IntelliJ IDEA 10? I'd like to open a up a command line that integrates into the tools section like the common "run" console output and has the abilities to execute arbitrary commands. (shell) I switches from Aptana Studio to IntelliJ and miss such an integrated shell.

Any help would be appreciated
- Marcel

8 comments
Comment actions Permalink

Hello Marcel,

You can configure such a console by yourself if you go to Settings | External
Tools and define an external tool for running 'bash'.

is there a command line console integrated into IntelliJ IDEA 10? I'd
like to open a up a command line that integrates into the tools
section like the common "run" console output and has the abilities to
execute arbitrary commands. (shell) I switches from Aptana Studio to
IntelliJ and miss such an integrated shell.


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Hello Dmitry,

yole schrieb:

You can configure such a console by yourself if you go to Settings | External
Tools and define an external tool for running 'bash'.

thank you - I tried this and it works... but with limitations: there's no command history or file name auto-complete. I assume this is an issue of how IDEA processes control characters.

Maybe the integration of a shell into IDEA is a bit out-of-scope due to the fact that everyone uses his own shell - I just like the idea of an IDE that integrates all the things that I usually use in my programming cycle. That's why I appreciate IDEA so much: I've never seen an IDE that is that such comprehensive in language support and tools integration. (the cucumber integration really rocks) So when even "gem install" has it's own button why not integrating a simple shell that opens up with the base directory of the active project? (or file)

Greetings
- Marcel

0
Comment actions Permalink

Hello Marcel,

It may be that we'll eventually integrate such a shell. However, until now
few people have requested that, for exactly the reason you describe: almost
all of the tools needed during day-to-day development are already integrated
in the IDE.

yole schrieb:
> You can configure such a console by yourself if you go to Settings |
> External
>
> Tools and define an external tool for running 'bash'.


thank you - I tried this and it works... but with limitations: there's
no command history or file name auto-complete. I assume this is an
issue of how IDEA processes control characters.

Maybe the integration of a shell into IDEA is a bit out-of-scope due
to the fact that everyone uses his own shell - I just like the idea of
an IDE that integrates all the things that I usually use in my
programming cycle. That's why I appreciate IDEA so much: I've never
seen an IDE that is that such comprehensive in language support and
tools integration. (the cucumber integration really rocks) So when
even "gem install" has it's own button why not integrating a simple
shell that opens up with the base directory of the active project? (or
file)


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

I am looking for the same thing and the external tools way is not very usesul...it loses history, etc...

Please add this!

Thanks,

Brian

0
Comment actions Permalink

There's 7 developers working with me , that would appreciate having integration with any native command line tool. It's confusing that I can launch notepad using external tools, but I cannot launch cmd or gitbash (unless i choose to open in intellij console)....

It does not necesairly need to be embeded in Intellij window, even if it's simply calling command line based tool in it's native window that would be very helpfull...

0
Comment actions Permalink

Any update or work on this?

It would be nice to have an interactive shell where the console window is, so that we can rapidly execute our code and pass it command-line parameters.  Clicking Run ->  Edit Configurations -> adding Script Arguments -> Apply -> Ok -> Run is somewhat unacceptable for my use-case.

Having to switch back and forth to another app/terminal to execute the code when developing command-line parameter rich projects somewhat ruins the user experience.  Especially on devices that do not have a lot of resources after IntelliJ launches and somewhat lags my others apps when switching back and forth.  Having everything self contained would be clutch.

Please revisit adding this support.  I'm amazed the rest of he Ruby/RubyMine/etc. users haven't already raised similar issues and needs.

After my trial expires, I will have to switch to another IDE, although I am dreading it.  I have got intellij customized and working beautifully with all of the things it offers natively and by other plugins.  The code style and code inspections that it does for Ruby are implemented amazingly.  I've invested a lot of time getting this working for my needs.  This is the last thing I went to implement, and realized it didn't exist.   I'm extremely bummed. :(

 

0
Comment actions Permalink

[SOLVED]

Press ALT+F12 to open an interactive terminal and cd to your project/code.
Reference: https://www.jetbrains.com/help/idea/13.0/working-with-embedded-local-terminal.pdf

Read below for other options...

If you wish to right click on a file and have it open the terminal at the file path check out the "open terminal here" plugin:
https://plugins.jetbrains.com/plugin/8081-open-terminal-here

There's also some ability to run shell commands via the "command line tools" (WITH LIMITATIONS, read below):
Reference: https://www.jetbrains.com/help/idea/2017.1/using-command-line-tools.html
After this plugin is installed, click Tools -> Run Command
There will be an input pane at the bottom:

  1. cd to your script directory.
  2. Call your script from this input pane with the required command-line arguments.
  3. If environment variables need to be passed, read the below limitations and workarounds. (tested on OS X)

[LIMITATIONS]: The shell is not interactive.  You will only see the script/command output -after- it has fully executed.
[ENVIRONMENT LIMITATIONS - The below will -not- work]:

  1. SOME_ENV_VAR=test ./script <parameters>
  2. export SOME_ENV_VAR=test && ./script.rb <parameters>
    (The environment variable will not be set when the script gets called)

[LIMITATIONS WORKAROUND]: bash -c "export SOME_ENV_VAR=test && ./script.rb <parameters>"

 

Hope this helps...

0

Please sign in to leave a comment.