Lets say I have a file open in a large project. How do you see the corresponding file in the project structure view on the left side while the file is open on the right ?
A project in Android Studio contains everything that defines your workspace for an app, from source code and assets, to test code and build configurations.
It's Scroll from Source
that you want. It's the one the red arrow is pointing to in the following image:
Also, there's an Autoscroll from Source
(as well as Autoscroll to Source
) on the settings icon, if you are interested. If selected, instead of having to press the Scroll from Source
button, the active file gets shown automatically in the project structure.
You can configure your IDE to automatically select the file when you access it. Just access the option: "Show Options Menu" and activate the item "Always Select Opened file". See image below. Android Studio version: 4.0.1
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