I have posted the picture, and it becomes annoying reading a single lined code snippet.
I am using Chrome version 57.0.2987.133 (64-bit) on macOS v10.12 (Sierra).
Why didn't Stack Overflow do this?...
Meta Stack Exchange is a question and answer site for meta-discussion of the Stack Exchange family of Q&A websites. It only takes a minute to sign up.Sign up to join this community
I, too, dislike very long single-line code snippets. While in your screenshot the behavior of the scrollbar is beyond awful, it's not a much better experience when the scrollbar behaves properly.
If at all possible (eg a language that can handle multiple lines) edit the code, adding line breaks and whatever "continuation character" is required, so that there is no scrollbar but the code remains pastable-and-usable as presented.
If that's not possible, consider editing it anyway and adding line breaks along with a note that the actual code doesn't have them. Being able to read the question or answer is really an important consideration.