cmder icon indicating copy to clipboard operation
cmder copied to clipboard

Run cmder inside IntelliJ idea

Open justechn opened this issue 12 years ago • 124 comments

Currently I am running Git bash inside IntelliJ Idea (http://blog.codeleak.pl/2014/02/git-bash-in-intellij-idea-13-on-windows.html). I would like to use cmder but I need to know if I can do the same, and if so, what command line arguments do I need to supply?

justechn avatar Oct 03 '14 18:10 justechn

That would be be great for me too. If we could run cmder inside Idea as Terminal

jirkadev avatar Feb 11 '15 15:02 jirkadev

We have now an official guide to add Cmder to IntelliJ: 🎉

https://github.com/cmderdev/cmder/wiki/Seamless-IntelliJ-based-Integration

Cmder_IntelliJ

If you require further support, comment below. Please avoid using some outdated methods that were commented below.

MartiUK avatar Mar 12 '15 15:03 MartiUK

+1

codeengie avatar Sep 17 '15 21:09 codeengie

Holy moly that'd be awesome!!!!

DanielGGordon avatar Sep 18 '15 03:09 DanielGGordon

I got it working!

It was pretty simple based on @MartiUK's suggestions above:

  1. Set an environment variable called CMDER_ROOT to your root Cmder folder (in my case C:\Program Files (x86)\Cmder). It seems to be important that this does not have quotes around it because they mess with concatenation in the init script. image
  2. In your IntelliJ terminal settings, use cmd.exe /k ""%CMDER_ROOT%\vendor\init.bat"" as the Shell path. The double-double-quotes are intentional, as they counteract the missing double quotes in the environment variable. image
  3. Et voilà! image Unfortunately the lambda symbol is not supported in IntelliJ yet, but everything else seems to be working fine.

nicole-ashley avatar Dec 09 '15 19:12 nicole-ashley

Awesome! Thank you for figuring this out. Props to @MartiUK and @nikrolls

codeengie avatar Dec 11 '15 16:12 codeengie

@nikrolls technique worked for me as well (Thanks!). The only requirement was that I needed to restart IntelliJ for it to work correctly after adjusting the settings. Simply hitting "Apply" and "OK" was not enough.

nateperry avatar Dec 31 '15 04:12 nateperry

IntelliJ 15.0.2 displays the lambda symbol.

codeengie avatar Jan 06 '16 21:01 codeengie

thank you very much @MartiUK @nikrolls

fflrichard avatar Jan 30 '16 05:01 fflrichard

Nice! Thanks @nikrolls

BassOfLion avatar Feb 05 '16 13:02 BassOfLion

What about opening mintty with git bash in Intellij? Can you specify the mintty task when doing this?

I have opened git bash in intellij, but the lambda symbol still shows up as ?

DanielGGordon avatar Feb 05 '16 18:02 DanielGGordon

When I try @nikrolls suggestion, I get "The system cannot find the path specified."

When I put %CMDER_ROOT% into a windows explorer address bar, it works. I put cmd.exe /k ""%CMDER_ROOT%\vendor\init.bat"" as my Shell path in PHPStorm. I start PHPStorm and get "The system cannot find the path specified."

2016-02-18 17_17_53-terminal - x2o-join-eval

martin-sweeny avatar Feb 18 '16 22:02 martin-sweeny

@martin-wiseweb Perhaps you forgot to restart ide. I had the same error in IntelliJ. It helped me.

Campeadoris avatar Feb 20 '16 07:02 Campeadoris

@nikrolls Thanks, man. It works.

ghost avatar Mar 03 '16 21:03 ghost

Cmder in cmd.exe is a half success as i see... The best way should be to use cmder in conemu, but it does not embed in PHPstorm currently:/

cmd_vs_conemu

If I missing some configuration or misunderstood something, please correct me. Thx

karolymarton avatar Mar 15 '16 15:03 karolymarton

@mdesign83 It isn't technically running cmder in IntelliJ, just the initialisation scripts that cmder uses.

MartiUK avatar Mar 15 '16 17:03 MartiUK

Thanks, it working for me

AcidHardcore avatar Apr 16 '16 18:04 AcidHardcore

I'm having trouble getting the lambda icon to come up in IntelliJ. Was there any special config or some command flag that needs to be passed to make this available in IntelliJ 2016.1?

brdegenars avatar May 02 '16 19:05 brdegenars

After the latest security update I have to use quotes for the cmd.exe part:

"cmd.exe" /k ""%CMDER_ROOT%\vendor\init.bat""

MIKAGMR avatar May 17 '16 10:05 MIKAGMR

I did something similar by wrapping the whole thing in a bat file and calling that, kind of achieved the same solution, no lamdba sign though :cry:

michaeljohnbennett avatar May 17 '16 13:05 michaeljohnbennett