How to show the current file being edited in the project view in PyCharm?

I am using PyCharm Community Edition 4.5.1. Suppose I have a file open in the editor, and I want to see it in the project view (usually so I can open a sibling file). How do I do that?

I've googled all manner of "navigate" and "find" and such, and it's always some related concept, but not this one.


Solution 1:

I got here, so maybe this will help some other folks like me :

How to show current working file in pycharm Project:

  1. Alt + 1 \ Ctrl + Shift + 1 - open the Project nav bar.
  2. Click the little settings wheel in top right of the project bar
  3. Mark the "Always Select Opened File".

enter image description here

Now try and navigate to some files and watch them being displayed in the project bar .

Solution 2:

Navigate | Select In... (Alt-F1 in the default keymap), then select "Project View".

Solution 3:

  1. CMD-SHIFT-A (on Mac) to open the action selector
  2. Type sip which should highlight "Select in Project View"
  3. ENTER

Solution 4:

In current/later versions of PyCharm 2020.1 you

  • Open Project tab (Alt + 1)
  • Click Settings (little gear) icon on top right corner of the Project tab
  • Check option Always Select Opened File

Solution 5:

For PyCharm 2020.1

Step 1: Open project tab from View menu or use keyboard shortcut (Alt + 1)

enter image description here

Step 2: From the project tab click the gear icon and check option Always Select Opened File

enter image description here