Show current file in Project view?

已完成

Hi there

Is there a way of revealing the file you're currently editing in the Project view?   I generally open files using Cmd-T but quite often I'd like to quickly show the folder in which this file resides in the Project view.


Thanks
Olly

11

Hello lylo,

Is there a way of revealing the file you're currently editing in the
Project view? I generally open files using Cmd-T but quite often I'd
like to quickly show the folder in which this file resides in the
Project view.


Alt-F1 (View | Select In...)

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


25

Hello Olly,

Is there a way of revealing the file you're currently editing in the Project view?   I generally open files using Cmd-T but quite often I'd like to quickly show the folder in which this file resides in the Project view.


You can use Select In... (Alt+F1) action to open file in editor in Project or Rails view.
Also in Project pane you can enable Autoscroll from/to sources.

Regards,
Oleg

10

Thanks everyone

0

 Hi there,

In PhpStorm v2016.2.1, "ALT-F1" opens the "Select Target" popup menu and I have to press "1" to select the "Project View".

Is there any way this can be achieved with a single key mapping?

Thanks!

1

You can assign another shortcut for View | Tool Windows | Project by going to Settings | Keymaps.

0

Thanks @olga.  However, the key map you are referring to is not available in phpStorm v2016.2.1.  Someone told me this will be available in v2016.3

0

I want to be able to select the file I'm editing in the left pane which is Project Explorer. By pressing Alt+F1 I get a drop-down menu opened where I should then select "1. Project". How to assign a single shortcut key to immediately select the file in the Project?

1

@Artiom, this is can achieved with a single kepmap called "Select in Project View" , which is available in PhpStorm v2016.3 or later.

6

The action seemed to be called "Locate/Select in Solution View" in 2018.

0

Click the gear and then Autoscroll From Source

 

enter image description here

17

ctrl + alt + 1 for my PyCharm on linux. or type the action "Select in Project View" under ctrl + shift + A

3

Webstorm for Mac...

Project > Hamburger (type) Menu > Autoscroll from source

2

This Autoscroll to/from Source was disappeared from the menu. 2020.1 version.

Is it any way to somehow set this functionality? This should be a really basic functionality of an IDE. 

The Always select opened file doesn't work from both direction.

1

Linczy, instead of Autoscroll from/to there're now 'Open Files with Single Click' and 'Always Select Opened File'. Could you please specify what exactly doesn't work?

6

To show the current file permanently the setting on Projects view is now called "Always Select Opened File"

5

So frustrating that JB keeps breaking stuff and the solutions keep changing. 

Open files used to get selected in the project pane. Suddenly that behavior stops. The answers I find are all outdated.

So painful…

1

Harry, if you mean the ‘ Always Select Opened File ’ option, then it's available in the Project view under three dots (Options) → Behavior. 

0

请先登录再写评论。