178

I'm using the terminal which is integrated in Visual Studio Code. When I scroll up it shows the previous lines, but they are not enough for me. I need to see more lines.

How can I increase the total number of lines that are displayed by the terminal in VS Code?

4 Answers 4

260

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:

enter image description here

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

4
  • 16
    Currently (VS Code 1.34) the command to open the settings is File -> Preferences -> Settings. The shortcut is Ctrl + ,. Commented May 31, 2019 at 23:38
  • 3
    Is there a way to set it to infinity?
    – a06e
    Commented May 22, 2020 at 14:22
  • 1
    Currently, in MacOS, the path is Code -> Preferences -> Settings. Shortcut: Command + , Also, it doesn't look like a JSON (but there may be such a file underlying, though) Commented Dec 10, 2022 at 4:48
  • Do you have to restart Vscode for the settings to take effect?
    – YAZ84
    Commented Feb 21, 2024 at 10:24
68
  1. Go to File -> Preferences -> Settings

terminal_limit_exceaded_menu

  1. Search for terminal and open settings.json

terminal_limit_exceaded

  1. Add new line to settings.json

      "terminal.integrated.scrollback": 100000000,
    

terminal

5
  • 3
    Is that the maximum value? Is there an "infinity" setting?
    – a06e
    Commented May 22, 2020 at 14:23
  • 2
    Well even if an infinity setting would be more than "100000000", I'd like to know the use case where that is actually necessary :D
    – Pharao2k
    Commented Jun 17, 2020 at 15:59
  • 13
    Instead of searching for "terminal" search for "terminal.integrated.scrollback" which takes you straight to the setting, which is always there so doesn't need to be added, and which has initial value 1000. Commented Apr 8, 2021 at 21:52
  • 1
    Do you have any experience how these changes affect your memory usage?
    – Tom
    Commented Apr 24, 2023 at 10:51
  • 1
    Dont set it to 100000000 like this post suggests as your vscode might take performance hit. The app pre-allocates memory based on this value.
    – siwalikm
    Commented Jun 7, 2024 at 9:46
41

Visual Studio Code Version 1.47.3, You can do it in Files --> Preferences --> Settings then select Feature/Terminal menu. Find the "Integrated:Scrollback" property and change it. Save the settings.

enter image description here

27

Fastest way just in case:

  1. Hit Ctrl + , (or Cmd + , on Mac)
  2. Search for terminal.integrated.scrollback
  3. Update 1000 to something bigger like 1000000 (see warning below)

enter image description here

Warning:

After a year I noticed that resizing the left panel width of VScode was freezing the editor for a few seconds. I lowered this number from 100000000 to 1000000. If you notice your VSCode is lagging or freezing, choose a lower number here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.