How to find out which class I'm currently in i

2019-04-18 09:22发布

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?

标签: pycharm
4条回答
再贱就再见
2楼-- · 2019-04-18 09:59

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.

查看更多
走好不送
3楼-- · 2019-04-18 10:06

Try ALT+Q, as described in the PyCharm docs

查看更多
地球回转人心会变
4楼-- · 2019-04-18 10:08

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.

查看更多
\"骚年 ilove
5楼-- · 2019-04-18 10:23

For mac it is: Ctrl + Shift + q.

查看更多
登录 后发表回答