How to go to specific code line

Hi everyone, I'm trying to make a JButton to take class name and code line as parameter, and I want to move the cursor to given line in the class. But I don't know how to move the cursor. I appreciate any help or opinion, thank you.

1 comment
Comment actions Permalink

Hello.

You probably writing a plugin? Can't help you with a plugin, but just for case this can help: IDEA supports notation like "ClassName:25" or "FileName:25" in Go to Class and Go to File popups (Ctrl+N, Ctrl+Shift+N). On that they navigate to specified line.

Regards,
Alexander.

0

Please sign in to leave a comment.