Devon Biere
Devon Biere

Reputation: 3012

Android Studio - How to disable the scrolling code preview overlay?

In Android Studio (and IntelliJ IDEA), when you hover your cursor in the scrollbar area of the editing window, the cursor changes to a pointing hand and displays a 10-line preview of the code in that location in the file. Here's a screenshot:

enter image description here

As you move your cursor up and down that scrollbar area, the code preview overlay shifts with it. I've dug through the preferences and searched online, but I can't figure out how to turn off this feature. Does anyone know what this is called and how to disable it?

Upvotes: 18

Views: 5037

Answers (2)

Dave Newton
Dave Newton

Reputation: 160191

It's called the "code lens" and it's configurable in:

Editor -> General -> Appearance

In some versions, it's called "editor preview tooltip" instead of "code lens."

enter image description here

Also can be disabled by right-clicking on the scroll bar area.

Upvotes: 24

Brandon Lerner
Brandon Lerner

Reputation: 297

If you right click on the scroll bar you can very easily disable it.

Uncheck 'Show code lens on scrollbar hover' and it'll disable it. Alternatively you can disable from preferences using that as a search filter.

Upvotes: 2

Related Questions