Quantcast
Viewing latest article 11
Browse Latest Browse All 74

How to create clickable links in comments for navigating to other files, methods, or classes in PyCharm (.py files)

I see there is already support for .md files to have clickable links to internal filesFor example:let say you have a example.env file at project/repository root (awsome-project/example.env)then I can reference this file using[example.env](/.env.example)or if there is external link I can do:[Django](https://docs.djangoproject.com/en/3.0/).However, I want to reference to a specific line of code in .py files for easy navigation.

For example, If I have a class:

class ServiceCallback():    def handle_success(self, instance):        ...        ...        ... # I want to link/reference to this line        instance.send_success_notification()

I need to refer to specific line of code in that class/method. Is this possible ?


Viewing latest article 11
Browse Latest Browse All 74

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>