Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio see currently open file in project structure

Tags:

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 ?

like image 410
Ankit Avatar asked Sep 06 '17 01:09

Ankit


People also ask

What is Android Studio project structure?

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.


2 Answers

It's Scroll from Source that you want. It's the one the red arrow is pointing to in the following image:

Scroll from Source button screenshot

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.

like image 114
inigo333 Avatar answered Oct 20 '22 03:10

inigo333


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

enter image description here

like image 27
Wedson Quintanilha da Silva Avatar answered Oct 20 '22 05:10

Wedson Quintanilha da Silva