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?
If the file is opened in the editor, press Alt+F1 to open the Select In popup. In the popup, select Project View and press Enter . PyCharm locates your target in the Project tool window.
By default, PyCharm shows all classes, methods, and other elements of the current file. To toggle the elements you want to show, click the corresponding buttons on the Structure tool window toolbar. to show class fields.
Just ot note: Pycharm's to spaces function only works on indent tabs at the beginning of a line, not interstitial tabs within a line of text.
Try ALT+Q
, or Mac: Ctrl + Shift + Q
for Mac as described in the PyCharm docs
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With