Steve
Steve

Reputation: 415

Android Studio: Code Folding turned off but not applying to imports

I have turned off Code Folding using the procedure described here.

However, my imports are still folded away, hidden by an Ellipsis, as shown here:

Imports hidden by ellipsis

I really don't see the point of having code hidden away so that extra key presses or mouse clicks are required to see it.

How can I make Android Studio just show me everything?

Upvotes: 3

Views: 690

Answers (3)

Parashar Dhamecha
Parashar Dhamecha

Reputation: 1

This is a huge bug in latest version of Android Studio. Here's how I solved it.

1: Right click on Gutter area of editor (Where line number is shown)

2: Go to Appearance

3: Uncheck 'Show Sticky lines' option and you're good to go!

Check this photo for visual representation

Upvotes: 0

ayewo
ayewo

Reputation: 1

If you are on Android Studio Giraffe 2022.3.1 you can uncheck it on the following screen:

Preferences -> Editor -> General -> Code Folding

Upvotes: 0

Jayvijay Gohil
Jayvijay Gohil

Reputation: 53

  1. Launch Android Studio
  2. Configure > Settings > Editor > General > Code Folding
  3. Uncheck "Imports"

Upvotes: 4

Related Questions