androidandroid-studioeditor

Android Studio Narwhal. How to remove empty space between lines


After upgrading to Android Studio Narwhal, the code editor started to add empty space between real lines of code. How can that be fully disabled? Example screenshot is below. At the left are real line numbers. I do not want to see any fake empty space in my code. Thanks in advance.

enter image description here


Solution

  • The solution was to disable the option Editor -> Inlay Hints -> Code vision -> Usages. I think that when a project is not synced or too big, the Studio cannot calculate usages and just shows an empty space between the lines of code