GP89
GP89

Reputation: 6730

How to find out which class I'm currently in in Pycharm?

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

Answers (4)

Hauke
Hauke

Reputation: 2574

Try ALT+Q, or Mac: Ctrl + Shift + Q for Mac as described in the PyCharm docs

Upvotes: 27

valex
valex

Reputation: 5789

For mac it is: Ctrl + Shift + q.

Upvotes: 1

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

CrazyCoder
CrazyCoder

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

Related Questions