How to add a vertical scrollbar in hugo?

I am using hugo-hello-friend-ng theme and would like to have a vertical scrollbar for code-blocks.

This is not related to Hugo, but might be related to your theme. Also, you could add the appropriate CSS to your style sheet(s) to achieve your goal.