Is there a way to launch a project in Intellij, from within its directory, via bash?

Answered

I'm using Windows 10 and Intellij Ultimate, and trying to figure a way to launch a project directly from it's directory via Bash terminal, same as possible to execute with Visual Studio code.

I tried to follow some instructions and guides before, but I didn't manage to make it happen so far.

0
5 comments

Hello Ron,

Have you tried instructions from this article: https://www.jetbrains.com/help/idea/opening-files-from-command-line.html ? Note, that if project already exists you can use path to project folder instead if file name.

 

0
Avatar
Permanently deleted user

Hi Yaroslav, tnx for your time and answer.

Well, I did try but it's not working for me either. the thing is, and I'm pretty sure about it, is that I'm not doing it right.

Do you mind going all the manual steps with me? in a simpler, more understandable way?

0

Ron,

Could you please attach screenshot with your terminal session and command you use?

 

0
Avatar
Permanently deleted user

Though I'm aware that the <IntelliJ IDEA> is actually should be an alias lying in the path, but I don't know how to configure it right.

0

Ron,

You need to manually create some environment variable (e.g. "IDEA_HOME") pointing to exe file in installation directory (e.g. /C/<PATH_TO FOLDER>/bin/./idea64.exe). Then you could use "$IDEA_HOME" from bash.

Othewr way is to add "C:\<PATH_TO_FOLDER>\bin" to PATH variable. Then you could run IDE using "idea64.exe" in bash.

 

0

Please sign in to leave a comment.