Get position in file by using comment

I have file with comments that contain links to different places of project:

api.py
def foo():
    """  look to ./demo/system.py:20  """

Is there any way to open file system.py on line #20 by click + ctrl? Or something like this.
0
5 comments
Avatar
Permanently deleted user
Also I can modify code to like as "from demo import system" for this, but I can't modify target file.
This example won't give me exact position.
0
Avatar
Permanently deleted user
It is not implemented yet. Please add your comment to http://youtrack.jetbrains.com/issue/PY-7677 and vote for it to receive updates on this issue.
0
Avatar
Permanently deleted user
Thank you for reply.
PY-7677 is other problem, that is named "go to defInition".
I need "go to file:line", for example I need get position of line like "a = b + c".

I think pyCharm doesn't have this feature.
0
Avatar
Permanently deleted user
You could navigate to file line via Ctrl+Shift+N (or Navigate->File) ->type there “<filename.py>:<line_number>”.
0
Avatar
Permanently deleted user
This is almost what I was looking for. Thank you.
0

Please sign in to leave a comment.