Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Android Studio's Split mode doesn't show the code

So as we all know the Split mode in Android Studio is supposed to be showing both code and previews of our composable functions (if any exist in a given file).

I managed to break it somehow, so that now the Split mode looks exactly the same as a Design mode (it shows previews only, without any code).

How do I return things back to normal? I tried to invalidate caches and restart; I also played with settings in Editor -> Design Tools – neither seems to help.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

This is how it looks like if anyone’s interested:

enter image description here

>Solution :

In the split view you have a vertical divider in the middle that you can use to resize the panes: When you make one lager the other gets smaller. You probably just made the right pane (where the preview is) as large as possible so the left pane (where the code is) vanished.

The vertical divider is at the left side of the preview pane, so just pull that to the right and the code pane should resurface.

If you have some other window left of the code/preview window you probably need to close that first so you do not use adjust that windows’s size instead.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading