open file at line N in Idea using terminal launcher?

Answered

Hi,

I'm using the command line launcher one macos to open files in idea.

I know that plugins (like YourkitProfiler) can jump to a specific position in a file. Is this possible also when using the terminal launcher? Is there any (hidden) flag/option to open a file at a specifc line?

Or is there some port at which idea is listening for files-to-be-opened + line number? I know some other tools supporting this file of navigation.

Best,
Holger

0
3 comments

"idea -line ### filename.txt"

0

Dmitry, I had to use two hyphens like:

"idea --line ### filename.txt"

0

Please sign in to leave a comment.