'How to "find usages" of dictionary element in Pycharm?

When using Pycharm, I rely a lot on the "find usages" feature.

This allows me to position the cursor on a variable and get automatically to that place where the variable is assigned for the first time. Using it at that place again, I can find all following usages of that variable.

Unfortunately, this is only working for variables, but not for dictionary elements:

Cannot search for usages. Position to an element to find usages for, and try again.

Is there any workaround or alternative for this?

The code relies heavily on dictionary elements, so I would even use a different IDE... . And I know it gets even more complicated, once the dictionary is initialized via xyz2 = {'a': 1, 'b': 2, 'c': 3} .

For the sake of completeness, here is the code I used:

abc = 3

xyz2 = { } # was: xyz2 = []
xyz2['a'] = 1
xyz2['b'] = 2
xyz2['c'] = 3

xyz2 ['a'] = 15
xyz2['a'] = 15
xyz2['b'] = 15
abc = xyz2['a']


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source