1

In Pycharm, I'd like to see the number of times each function and method in my code are used. I thought this was the use of inlay hints -> code vision -> usages, which I have turned on...

Inlay Hints settings

However, these usages are not showing up in my code. In the example below, if I right-click and choose find usages I see that this method is called 54 times...

method that is called 54 times

Am I doing something wrong? Is there something else I need to set? Am I misinterpreting how to use this functionality?

bad_coder
  • 11,289
  • 20
  • 44
  • 72
Ben
  • 4,798
  • 3
  • 21
  • 35
  • What PyCharm version is this? I'm on an older version and don't have the `Code Vision` list in the `Inlay Hints`. Without the new inlay hints, using `find usages` would give the count and kind of usages an object has in the search window. – bad_coder Apr 03 '23 at 17:58
  • 1
    I just upgraded over the weekend so I'm on the latest... 2023.1 (Professional Edition) Build #PY-231.8109.197, built on March 29, 2023. I can use find usages but, sometimes, it would be nice to just see the number of usages while looking at a function. – Ben Apr 03 '23 at 18:33

0 Answers0