Question: How to synchronize project pane with the current file in editor
Answered
hi,
I'm looking for a way to get the project pane scroll to the dir where the currrent file is in. There is a "Autoscroll to Source" button in the project pane. I'm expecting something like "Autoscroll to Dir" or a shortcut.
Is it a planned feature or already implemented?
Please let me know.
Thanks,
Cao
Please sign in to leave a comment.
Aha, it is the short cut everybody needs:-) I was looking for it myself
a while ago. Try Alt-F1 and select project in the pop up.
Bas
gc wrote:
Alt-F1, select Project then press the Left arrow key.
Eugene
"Bas Leijdekkers" <basleijdekkers@hotmail.com> wrote in message
news:bkcqpf$8lj$1@is.intellij.net...
>
>
>
This is probably the most frequently asked question, over time, about IDEA.
This feature needs to be made more obvious and discoverable. The only way I
found it was asking on here, like so many before me and so many since...
"gc" <no_mail@jetbrains.com> wrote in message
news:14308001.1063905502949.JavaMail.itn@is.intellij.net...
>
currrent file is in. There is a "Autoscroll to Source" button in the project
pane. I'm expecting something like "Autoscroll to Dir" or a shortcut.
>
>
>
I agree. Maybe they can put a button in the project pane? Like to the right of the "Show structure" button. At least that way people will wonder what it is and try it, hopefully.
True. It needs to be just like the scroll-to-source. Have it work both
ways. Don't force people to remember keystrokes when there is an automatic
way.
"Kirk Woll" <kirk@digimax.com> wrote in message
news:2216782.1063921275943.JavaMail.itn@is.intellij.net...
right of the "Show structure" button. At least that way people will wonder
what it is and try it, hopefully.
Latest version (2018.1.4) has this option. Project pane-> Settings-> "Auto Scroll to Source" or Auto Scroll from Source" . Thanks Jet Brains for adding it.
they renamed it (again) - select opened file , alt+f1 , key mapping does not work on Linux , since it is a system shortcut , you have to change the binding
@Alex what behaviour are you trying to get? Alt+F1 - is a default shortcut for the Navigate | Select In... action. You can check the shortcut and update it (if needed) in Keymap settings:
Andrey Dernov Is there a way to make this happen automatically each time I select a new editor tab (without having to press Alt+F1)? Thanks.
cb4
Perfect!!! Thanks, Serge Baranov
Thanks for the Screenshot Serge Baranov