This should be obvious, but I can't see how to do it. Just want the project browser to stay in sync with the current file I'm editing.
I'm using IdeaVIM plugin in case that's causing any issues, though I think it's just default value not to sync.
Project view. This view displays all the project items along with their dependencies (SDKs and libraries). The emphasis is on the directory structure, although the packages are also shown.
To change settings of a module that hosts the file you are currently editing, just press Alt+F1, 7 or open the View menu, select Select In and click Project Structure. IntelliJ IDEA will open the Project Structure dialog and jump to the required module.
Compatible with IntelliJ IDEA (Ultimate, Community, Educational), Android Studio and 13 more. This automates the action of right clicking on a project and clicking synchronize. This can be useful if you need to turn off the IDE's "Auto Synchronize on Frame Activation" due to using network mounted file systems.
Project view has an option to Autoscroll from Source under the Gear icon. If you prefer manual sync, use Navigate
| Select In...
menu or the corresponding keyboard shortcut.
The manual sync can be found in Navigate | Select In...
The keyboard shortcut would be ALT-F1 1 ESC
(the '1' selects the project windows, the ESC goes back to the editor window).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With