ДЩ
Go to menu File → Preferences → Settings.
Then overwrite "terminal.integrated.scrollback": 1000, (found in the left panel) with whatever you want in the right panel.
In newer versions, in the Settings pane, you can type "scrollback" as the search term and it should be found under Features/Terminal.