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

1
12 comments

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:

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


1

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...

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:

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

>


0

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...

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



0

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.

0

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...

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.


0
Avatar
Permanently deleted user

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.

2

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 

0

@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:

 

0

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.

0

Thanks for the Screenshot Serge Baranov

0

Please sign in to leave a comment.