172
votes

Is there a way to control how many lines can be in the scroll back buffer?

I need a few thousand lines. I'm writing testing code and have extensive output going to a log, but I have simple pass / fail results to the console.

The validations for each test print to the console. I may have 150 to 250 tests per suite, but say 8+ validations per test. I'd rather not open a full terminal window as this integrated environment is cleaning up my screen quite a bit.

2
Hi @Keith if any answer has solved your question please consider accepting it by clicking the check-mark. This indicates to the wider community that you've found a solution and gives some reputation to both the answerer and yourself. There is no obligation to do this. - blues

2 Answers

319
votes

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.

-2
votes

I think this is a setting of the terminal application you are using, e.g. Terminal.app on OS X or (default) xterm on Linux. If you modify the scrollback limit in those applications it should be reflected in Visual Studio Code.

I opened this to ask the Visual Studio Code guys for verification: Integrated terminal unlimited buffer #14320