There is a way to change number of lines for that you have to go:
file–>preferences–>configuration
Then, it will open file settings.json you should to search Integrated terminal and then you search for terminal.integrated.scrollback copy and paste this sentence on your user configuration so like this:

Change numbers of line as you want. That is it.