02 August 2023

Visual Studio - flickering scroll bar when editing certain file types

I got a new laptop and installed Visual Studio 2022 on it. When editing sql and aspx files on the secondary monitor, I could not scroll down or right. The scrollbar just flickers when I hovered over it. With Visual Studio opened on the main monitor, scrolling works fine. It turns out this is an issue with Visual Studio rendering in combination with the main monitor scaled above 100 percent. There are two solutions for it.

Disable the Visual Studio option Environment > General > Optimize rendering for screens with different pixel densities and restart Visual Studio
This solves the scrolling issue, but causes text on all panels to appear a bit blurry.
Set Windows option System > Display > Scale to 100 percent.
This also solves the scrolling issue, but now your main monitor is not at the (for me at least) recommended 125 percent.

No comments:

Post a Comment