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:
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?
Removing the scroll bar As of 2022, there is a Setting: Editor › Scrollbar: Vertical Scrollbar Size . I set it to 0 (zero) and the entire scrollbar column was no longer visible.
PreventUserInput to prevent scrolling, and then use a do-nothing scroll at the same priority to cancel the first "scroll" and re-enable scrolling.
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."
Also can be disabled by right-clicking on the scroll bar area.
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.
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