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
请先登录再写评论。
Hello lylo,
Alt-F1 (View | Select In...)
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Hello Olly,
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
Thanks everyone
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!
You can assign another shortcut for View | Tool Windows | Project by going to Settings | Keymaps.
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
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?
@Artiom, this is can achieved with a single kepmap called "Select in Project View" , which is available in PhpStorm v2016.3 or later.
Many Thanks D H!
The action seemed to be called "Locate/Select in Solution View" in 2018.
Click the gear and then Autoscroll From Source
ctrl + alt + 1 for my PyCharm on linux. or type the action "Select in Project View" under ctrl + shift + A
Webstorm for Mac...
Project > Hamburger (type) Menu > Autoscroll from source
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.
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?
To show the current file permanently the setting on Projects view is now called "Always Select Opened File"
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…
Harry, if you mean the ‘ Always Select Opened File ’ option, then it's available in the Project view under three dots (Options) → Behavior.