VS Code: How to clear linux terminal screen, but keep the previous lines in history

43 Views Asked by At

In the main Linux terminal, after clearing the screen (ctrl+l), the previous lines can still be accessible. However, in VS Code they are removed from the terminal history.

Is there any setting in VS Code to handle this issue?

Output of Help: About of VSCode:

Version: 1.83.1
Commit: f1b07bd25dfad64b0167beb15359ae573aecd2cc
Date: 2023-10-10T23:45:31.402Z
Electron: 25.8.4
ElectronBuildId: 24154031
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Linux x64 5.18.11-200.fc36.x86_64

My Linux shell is Bash version 5.1.16.

My Terminal profile: GNOME Terminal - Version 3.44.1 for GNOME 42

0

There are 0 best solutions below