To preview code without actually scrolling to it, hover your mouse pointer over a warning, error stripe or just some section of source code on the scrollbar, and you will see a lens:
To disable the lens, right-click the code analysis marker at the top of the scrollbar and clear the Show code lens on scrollbar hover checkbox.