Reputation: 6730
A rather simple question that I'm sure there's an answer to, I just can't seem to find it by searching
Sometimes I'm looking at or writing some code I want to double check or find out which class I'm in, is there an easier way I can find out without scrolling up to the class
line?
Upvotes: 28
Views: 3433
Reputation: 2574
Try ALT+Q
, or Mac: Ctrl + Shift + Q
for Mac as described in the PyCharm docs
Upvotes: 27
Reputation: 382870
Breadcrumb bar just under editor
As of Pycharm 2017.02, there is a breadcrumb navigation under every editor window that shows information like:
ClassName > FunctionName > for i in range(): > if True:
You can also click to go to any of those points in the code.
Upvotes: 13
Reputation: 401975
Navigate
| Select In...
| Project View or File Structure, or you can keep Project or Structure view visible with the Autoscroll from Source option enabled.
It's also possible to use Navigate
| File Structure for a pop-up showing your current position.
Upvotes: 12