open current file in project folder view

Hi there,

I'm coming from using SublimeText and one of the features I used often was opening the current file in side bar project folder by mapping the "reveal_in_side_bar" command to a designated keys.

In PhpStorm v2016.2.1, "ALT-F1" opens the "Select Target" popup menu and I have to press "1" to select the "Project View", which makes it a two step/keystroke process.

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

Thanks!

4 comments
Comment actions Permalink

Hi there,

Nope. But you may enable "Autoscroll from Source" option in Project View panel settings and always have currently edited file selected in Project View.

 

P.S.

In 2016.3 (currently in EAP stage) there is new dedicated action -- "Select in Project View" that does just that (Navigate | Select In... | Project View) in one go. It has no shortcut by default but it can be set via "Settings/Preferences | Keymap"

2
Comment actions Permalink

@Andriy,

Thank you so much for the response and the work around. I tried the "Autoscroll from Source" option but it got really annoying with slight delay every time I change file and sometimes I didn't want to lose the location I was in the project view.

Thanks for letting me know that this feature will be available in the next release.  It's good to know so I wait until 2016.3 is released before I purchase the license :)

Cheers!

0
Comment actions Permalink

You can try 2016.3 EAP build any time.

Post about latest public build: https://blog.jetbrains.com/phpstorm/2016/09/phpstorm-2016-3-eap-163-4830/

0
Comment actions Permalink

Been looking for this one for a while. Thanks for adding this as I use it a *lot*!!!

0

Please sign in to leave a comment.