luktom / OpenInTerminal

OpenInTerminal IntelliJ IDEA plugin
GNU Lesser General Public License v3.0
36 stars 7 forks source link

Windows PowerShell #6

Open webmato opened 7 years ago

webmato commented 7 years ago

Hello, first of all I would like to say thank your plugin.

My question is, how to setup plugin with Windows PowerShell?

youyinnn commented 6 years ago

got a same question

lostpebble commented 6 years ago

By the power of obscure Google searches and some lacking documentation tidbits, I have found the answer:

Terminal Command: cmd /C start powershell.exe /noexit Options: cd

Basically the next thing that is inserted is the directory you're aiming for. So the first line opens powershell (which was quitting instantly for some reason, hence the /noexit) - and then it runs cd C:/whatever/directory. At least I think that's what's happening. Anyway, it works 🎉