Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ: Ubuntu/linux how to open file with IntelliJ from shell

Following this question, it seems that it is possible to open a file from the shell with IntelliJ on MAC.

IntelliJ: how to open files in an existing IntelliJ from the command line

Is there anything something similar for Ubuntu?

like image 591
dawez Avatar asked Jan 17 '23 02:01

dawez


1 Answers

You can associate the files with IDEA_DIR/bin/idea.sh file. Or even better, use Tools | Create Command-line Launcher...

Then you can open files in IDEA using the following command: idea FileName.java

like image 121
CrazyCoder Avatar answered Jan 19 '23 14:01

CrazyCoder