Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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.

like image 745
dfrankow Avatar asked Jun 28 '15 16:06

dfrankow


People also ask

How do I reveal a file in PyCharm?

Press Shift+F4 for a file selected in the Project tool window. Shift + mouse double click on a file name in the Project tool window.

How do I show all functions in PyCharm?

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.

What does it mean when a file is red in PyCharm?

The files in Pycharm are under Version Control. Pycharm changes the file's color by the status of file. The 'red' color of the file you mentioned indicated that the file is 'Unkown' status to the version control. If you add the 'Unkonwn' file to version control and commit to repository, the 'red' color can be changed.

What does an orange folder mean in PyCharm?

4 comments. Created January 12, 2021 08:53. Those orange folders are marked as Excluded (PyCharm doesn't build indices for them). You can change it by right-clicking the folder and choosing Mark Directory as, if needed.


1 Answers

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 .

like image 178
dbkoren Avatar answered Sep 20 '22 14:09

dbkoren