How can I call out Windows CMD and autocd into the project path from intellij?

In windows 10 cmd has much better user experience. So I disabled embeded terminal and switch to use cmd. However I cannot find a hotkey to call out cmd quickly. Any help is very much appreciated!

4 comments
Comment actions Permalink

Use an external tool and assign a hotkey to it: https://www.jetbrains.com/idea/help/configuring-third-party-tools.html .

Pass a command with the project root dir variable to cd.

0
Comment actions Permalink

Thanks for your suggestion. I've wrote a external tool as you mentioned but the cmd window did not pop out. It embeded into intellij's frame just like the old Terminal plugin did.

0
Comment actions Permalink

Use "start" to fork a new window:

/C "start cmd.exe /K "cd $ProjectFileDir$""

http://i.imgur.com/8lLs3tL.png

0
Comment actions Permalink

Great! In fact I only use /C "start cmd.exe" as parameter and it works like a charm. Thank you.

0

Please sign in to leave a comment.