Oxy
Oxy

Reputation: 323

Intellij IDEA on Mac OS: open file at a line number from terminal

I can open a file from terminal using this command:

/Applications/IntelliJ\ IDEA\ 14\ CE.app/Contents/MacOS/idea <absolute-path-to-file>

But, when I pass the line number to it, it doesn't work:

/Applications/IntelliJ\ IDEA\ 14\ CE.app/Contents/MacOS/idea <absolute-path-to-file> --line 50

Any help?

Upvotes: 2

Views: 417

Answers (1)

Oxy
Oxy

Reputation: 323

I figured it out. --line 50 should go before the file name or it doesn't work and it doesn't give any error message!

Upvotes: 3

Related Questions