I always have an IntelliJ running. Sometimes I want to open a file from outside IntelliJ. I can drag and drop a file to IntelliJ if am in the Finder, but if I am on the command line on OS X, how can I instruct IntelliJ to open a certain file? I am looking for something similar to the mate
command provided by TextMate.
views:
92answers:
1
+4
A:
Edit your ~/.bash_profile
adding the following, changing the path to version of IntelliJ you'd like to use:
alias "ij=open -a /Applications/IntelliJ\ IDEA\ 9.0.2.app"
Then from the command line, open files with ij your-file.txt
.
Alessandro Vernet
2010-04-23 02:42:11
Or, so you can move IntelliJ later: open -b com.jetbrains.intellij
Nicholas Riley
2010-04-23 16:24:29